File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,9 @@ struct afl_cmptrs_pass : afl_base_pass {
157
157
/* We expect it to be a record type. */
158
158
if (TREE_CODE (t) != RECORD_TYPE) return false ;
159
159
160
+ /* The type has an identifier. */
161
+ if (!TYPE_IDENTIFIER (t)) return false ;
162
+
160
163
/* The type of the template is basic_string. */
161
164
if (strcmp (IDENTIFIER_POINTER (TYPE_IDENTIFIER (t)), " basic_string" ) != 0 )
162
165
return false ;
@@ -201,7 +204,7 @@ struct afl_cmptrs_pass : afl_base_pass {
201
204
/* Now go back to the first data member. Its type should be a
202
205
record type named _Alloc_hider. */
203
206
c = TREE_TYPE (c);
204
- if (!c || TREE_CODE (c) != RECORD_TYPE ||
207
+ if (!c || TREE_CODE (c) != RECORD_TYPE || ! TYPE_IDENTIFIER (t) ||
205
208
strcmp (IDENTIFIER_POINTER (TYPE_IDENTIFIER (c)), " _Alloc_hider" ) != 0 )
206
209
return false ;
207
210
You can’t perform that action at this time.
0 commit comments