Skip to content

Commit e9ed555

Browse files
author
Sukhmani
committed
Fixed a possible null dereference problem #77737
1 parent 0175a1e commit e9ed555

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

compiler-rt/lib/hwasan/hwasan_report.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,7 @@ static void PrintStackAllocations(const StackAllocationsRingBuffer *sa,
221221
for (LocalInfo &local : frame.locals) {
222222
if (!local.has_frame_offset || !local.has_size || !local.has_tag_offset)
223223
continue;
224-
if (!(local.name && internal_strlen(local.name)) &&
225-
!(local.function_name && internal_strlen(local.name)) &&
226-
!(local.decl_file && internal_strlen(local.decl_file)))
224+
if (!(local.name && internal_strlen(local.name)))
227225
continue;
228226
tag_t obj_tag = base_tag ^ local.tag_offset;
229227
if (obj_tag != addr_tag)

0 commit comments

Comments
 (0)