projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
parse_number("0") reads uninitialized memory
[deliverable/binutils-gdb.git]
/
gdb
/
c-exp.y
diff --git
a/gdb/c-exp.y
b/gdb/c-exp.y
index 714e02ef918421914ba081eb6ac0d620bac23210..7339ee8cb701d225284f8480a71717a171fd6979 100644
(file)
--- a/
gdb/c-exp.y
+++ b/
gdb/c-exp.y
@@
-36,7
+36,6
@@
%{
#include "defs.h"
-#include <string.h>
#include <ctype.h>
#include "expression.h"
#include "value.h"
@@
-1825,7
+1824,7
@@
parse_number (struct parser_state *par_state,
}
/* Handle base-switching prefixes 0x, 0t, 0d, 0 */
- if (p[0] == '0')
+ if (p[0] == '0'
&& len > 1
)
switch (p[1])
{
case 'x':
This page took
0.024308 seconds
and
4
git commands to generate.