Skip to content

ci: run Test::Nginx on ASan nginx 1.31.4 with no-pool - #65

Open
lynch1981 wants to merge 4 commits into
FoxIO-LLC:mainfrom
lynch1981:main
Open

ci: run Test::Nginx on ASan nginx 1.31.4 with no-pool#65
lynch1981 wants to merge 4 commits into
FoxIO-LLC:mainfrom
lynch1981:main

Conversation

@lynch1981

Copy link
Copy Markdown
Contributor

Build with -fsanitize=address and OpenResty no-pool. Keep ASAN_OPTIONS=detect_leaks=0 so prove catches UAF/OOB via nginx abort; leak reports stay out of CI.

Build with -fsanitize=address and OpenResty no-pool. Keep
ASAN_OPTIONS=detect_leaks=0 so prove catches UAF/OOB via nginx
abort; leak reports stay out of CI.
Instrument array bounds with -fno-sanitize-recover so a trap aborts
nginx and prove fails. Keep detect_leaks=0.
Pass the struct into method_code and decode_http_lang so those
fields stay char[N] for -fsanitize=bounds. Size hash12 dest as
char out[13], like ngx_md5_final.
Run gcc AddressSanitizer+bounds on ubuntu-24.04 and clang
HWAddressSanitizer on native ubuntu-24.04-arm. Configure without
sanitizer flags (nginx sizeof probes SIGILL under HWASan), then patch
objs/Makefile CFLAGS and LINK so the real binary is instrumented.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant