[all-commits] [llvm/llvm-project] 685c94: SIGSEGV in Sanitizer INTERCEPTOR of strstr function.
RitanyaB via All-commits
all-commits at lists.llvm.org
Wed Jan 5 00:12:11 PST 2022
Author: Bharadwaj, Ritanya B <ritanya-b.bharadwaj at hpe.com>
Date: 2022-01-05 (Wed, 05 Jan 2022)
SIGSEGV in Sanitizer INTERCEPTOR of strstr function.
This is a segmentation fault in INTERCEPTOR function on a special edge
case of strstr libc call. When 'Haystack'(main string to be examined) is
NULL and 'needle'(sub-string to be searched in 'Haystack') is an empty
string then it hits a SEGV while using sanitizers and as a 'string not
found' case otherwise.
Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D115919
More information about the All-commits