sed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sed SEGV bug detected by ASAN


From: Assaf Gordon
Subject: sed SEGV bug detected by ASAN
Date: Fri, 10 Aug 2018 17:20:01 -0600
User-agent: NeoMutt/20170113 (1.7.2)

(forwarding from a private message)

----- Forwarded message from project-repo <address@hidden> -----

[...] Btw, I started up the fuzzers again today, and
it looks like a bug may have been introduced recently in lib/dfa.c on
line 286. Following is a detailed backtrace as supplied by the address
sanitizer:

ASAN:DEADLYSIGNAL
=================================================================
==17246==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 
0x55f0560842eb bp 0x7fff4dc4cad0 sp 0x7fff4dc4c930 T0)
==17246==The signal is caused by a READ memory access.
==17246==Hint: address points to the zero page.
    #0 0x55f0560842ea in dfaexec_main lib/dfa.c:3146
    #1 0x55f0560842ea in dfaexec_mb lib/dfa.c:3269
    #2 0x55f05606ae3f in match_regex sed/regexp.c:365
    #3 0x55f05605e807 in match_an_address_p sed/execute.c:798
    #4 0x55f05605feb3 in match_address_p sed/execute.c:837
    #5 0x55f05605feb3 in execute_program sed/execute.c:1287
    #6 0x55f05606752a in process_files sed/execute.c:1685
    #7 0x55f05603e58e in main sed/sed.c:376
    #8 0x7f1ed952ca86 in __libc_start_main 
(/lib/x86_64-linux-gnu/libc.so.6+0x21a86)
    #9 0x55f05603f179 in _start (/home/jefeus/sed/sed/sed+0xc179)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV lib/dfa.c:3146 in dfaexec_main
==17246==ABORTING

This bug can be reproduced by calling sed as 'sed -f min <(echo " ")',
where min is the file attached.

cheers,
project-repo

Attachment: min
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]