Skip to content

Commit 06aa297

Browse files
committed
Add additional signal, SIGILL, when running ASAN/UBSAN sanitizers.
1 parent 7cd949b commit 06aa297

3 files changed

Lines changed: 2 additions & 15 deletions

File tree

test_struct_size

-32.7 KB
Binary file not shown.

test_struct_size.c

Lines changed: 0 additions & 13 deletions
This file was deleted.

tests/test_yafl_guard.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ int main(int argc, char *argv[]) {
181181
fprintf(stderr, "[main] child killed by signal %d\n", sig);
182182
fflush(stderr);
183183

184-
/* Expect SIGSEGV (11) or SIGBUS (7) for guard page fault */
185-
if (sig == SIGSEGV || sig == SIGBUS) {
184+
/* Expect SIGSEGV (11) or SIGBUS (7) SIGILL (4) for guard page fault */
185+
if (sig == SIGSEGV || sig == SIGBUS || sig == SIGILL) {
186186
fprintf(stderr, "[main] guard page successfully detected stack overflow\n");
187187
fflush(stderr);
188188
} else {

0 commit comments

Comments
 (0)