projects
/
external
/
binutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
x86: Properly handle PLT expression in directive
[external/binutils.git]
/
ld
/
ldlex.l
diff --git
a/ld/ldlex.l
b/ld/ldlex.l
index
261c0c1
..
c80db58
100644
(file)
--- a/
ld/ldlex.l
+++ b/
ld/ldlex.l
@@
-424,7
+424,7
@@
V_IDENTIFIER [*?.$_a-zA-Z\[\]\-\!\^\\]([*?.$_a-zA-Z0-9\[\]\-\!\^\\]|::)*
/* PR ld/20906. A corrupt input file
can contain bogus strings. */
len = strlen (yylval.name);
- if (len > yyleng - 2)
+ if (len >
(bfd_size_type)
yyleng - 2)
len = yyleng - 2;
yylval.name[len] = 0;
return NAME;