mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
GP-1796 NULL ptr accesses on rare paths
This commit is contained in:
parent
1996cdacd1
commit
45eeb7cfb2
6 changed files with 29 additions and 14 deletions
|
@ -2064,6 +2064,9 @@ GrammarToken::GrammarToken(void)
|
|||
{
|
||||
type = 0;
|
||||
value.integer = 0;
|
||||
lineno = -1;
|
||||
colno = -1;
|
||||
filenum = -1;
|
||||
}
|
||||
|
||||
GrammarLexer::GrammarLexer(int4 maxbuffer)
|
||||
|
@ -2617,6 +2620,9 @@ CParse::CParse(Architecture *g,int4 maxbuf)
|
|||
{
|
||||
glb = g;
|
||||
firsttoken = -1;
|
||||
lineno = -1;
|
||||
colno = -1;
|
||||
filenum = -1;
|
||||
lastdecls = (vector<TypeDeclarator *> *)0;
|
||||
keywords["typedef"] = f_typedef;
|
||||
keywords["extern"] = f_extern;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue