https://bugs.exim.org/show_bug.cgi?id=2109
Bug ID: 2109 Summary: Null pointer dereference in pcre2_printint_8() Product: PCRE Version: 10.23 (PCRE2) Hardware: x86-64 OS: Linux Status: NEW Severity: bug Priority: medium Component: Code Assignee: p...@hermes.cam.ac.uk Reporter: fumfi....@gmail.com CC: pcre-dev@exim.org Created attachment 1016 --> https://bugs.exim.org/attachment.cgi?id=1016&action=edit POC to trigger null pointer dereference (pcre2test) Affected: - PCRE2 version 10.23 (SVN rev: 760) To reproduce the problem (pcre2test): pcre2test pcre2_null_ptr_pcre2_printint_8 /dev/null ASAN: ==845==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000080 (pc 0x000000504297 bp 0x7fffdd94a8b0 sp 0x7fffdd94a540 T0) ==845==The signal is caused by a READ memory access. ==845==Hint: address points to the zero page. #0 0x504296 in pcre2_printint_8 XYZ/pcre/./src/pcre2_printint.c:311:23 #1 0x504296 in show_pattern_info XYZ/pcre/src/pcre2test.c:4067 #2 0x4ede1d in process_command XYZ/pcre/src/pcre2test.c:4564:10 #3 0x4ede1d in main XYZ/pcre/src/pcre2test.c:8058 #4 0x7f9057df582f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f) #5 0x41acd8 in _start (/usr/local/bin/pcre2test+0x41acd8) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV XYZ/pcre/./src/pcre2_printint.c:311:23 in pcre2_printint_8 ==845==ABORTING -- You are receiving this mail because: You are on the CC list for the bug. -- ## List details at https://lists.exim.org/mailman/listinfo/pcre-dev