[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug: SEGV in function _nc_find_entry
From: |
address@hidden |
Subject: |
Bug: SEGV in function _nc_find_entry |
Date: |
Fri, 11 Oct 2019 17:00:43 +0800 |
POC: https://github.com/zjuchenyuan/fuzzpoc/raw/master/infotocap_poc7
```
Step 11/11 : RUN /tmp/infotocap fuzzpoc/infotocap_poc7 || exit 0
---> Running in d705c976c33d
ASAN:SIGSEGV
=================================================================
==6==ERROR: AddressSanitizer: SEGV on unknown address 0x62500004f900 (pc 0x00000044c48f bp 0x0000000a2687 sp 0x7fffffffba00 T0)
#0 0x44c48e in _nc_find_entry ../ncurses/./tinfo/comp_hash.c:70
#1 0x42daad in nametrans ../progs/dump_entry.c:174
#2 0x405c1c in put_translate ../progs/tic.c:339
#3 0x405c1c in main ../progs/tic.c:1033
#4 0x7ffff6ac082f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#5 0x408cd8 in _start (/tmp/infotocap+0x408cd8)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV ../ncurses/./tinfo/comp_hash.c:70 _nc_find_entry
==6==ABORTING
```
Reproducible Docker image has been pushed to `zjuchenyuan/dockerized_poc:ncurses`, Dockerfile:
```
FROM zjuchenyuan/afl
ENV AFL_USE_ASAN=1 ASAN_OPTIONS="detect_leaks=0"
RUN git clone https://github.com/ThomasDickey/ncurses-snapshots &&\
cd ncurses-snapshots &&\
git checkout 8805e9e &&\
./configure --disable-shared &&\
make -j &&\
cp ./progs/tic /tmp/infotocap
RUN git clone https://github.com/zjuchenyuan/fuzzpoc
RUN /tmp/infotocap fuzzpoc/infotocap_poc7 || exit 0
```
- Bug: SEGV in function _nc_find_entry,
address@hidden <=