Commit 3d11728
authored
[sanitizer_common] Fix potential null dereference in dlopen interceptor (llvm#74645)
The test_only_replace_dlopen_main_program flag
(introduced in
llvm@0be4c6b)
will cause internal_strcmp to dereference NULL if DlAddrSelfFName()
returns NULL (which happens in very rare cases). This patch adds a
null pointer check.
Co-authored-by: Thurston Dang <[email protected]>1 parent cd83180 commit 3d11728
File tree
1 file changed
+1
-1
lines changed- compiler-rt/lib/sanitizer_common
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6327 | 6327 | | |
6328 | 6328 | | |
6329 | 6329 | | |
6330 | | - | |
| 6330 | + | |
6331 | 6331 | | |
6332 | 6332 | | |
6333 | 6333 | | |
| |||
0 commit comments