projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
856c154
)
chew ubsan warning
author
Alan Modra
<amodra@gmail.com>
Fri, 6 Aug 2021 10:16:22 +0000
(19:46 +0930)
committer
Alan Modra
<amodra@gmail.com>
Fri, 6 Aug 2021 13:36:53 +0000
(23:06 +0930)
It matters not at all if pc is incremented from its initial NULL
value, but avoid this silly runtime ubsan error.
* doc/chew.c (perform): Avoid incrementing NULL pc.
bfd/doc/chew.c
patch
|
blob
|
history
diff --git
a/bfd/doc/chew.c
b/bfd/doc/chew.c
index b3be7fa9cdad97590a754db0b0d828c5025474b3..9271cd107f9487602cac1641fd242c13d789873b 100644
(file)
--- a/
bfd/doc/chew.c
+++ b/
bfd/doc/chew.c
@@
-1301,12
+1301,12
@@
perform (void)
{
if (warning)
fprintf (stderr, "warning, %s is not recognised\n", next);
-
skip_past_newline (
);
+
idx = skip_past_newline_1 (ptr, idx
);
}
free (next);
}
else
-
skip_past_newline (
);
+
idx = skip_past_newline_1 (ptr, idx
);
}
}