New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SEGV yasm/modules/preprocs/nasm/nasm-pp.c in delete_Token #216
Comments
|
Hi @z1r00 I have tried to reproduce the issue , I don't see the reported error "SEGV yasm/modules/preprocs/nasm/nasm-pp.c in delete_Token" instead I am seeing Memory leak in parse_instr, modules/parsers/nasm/nasm-parse.c Host- Ubuntu-20.04 Could you please comment on it |
|
I directly git, the compiled yasm version is yasm 1.3.0.55.g101bc |
Hello, I can reproduce the problem with git. It seems that you use a fuzzer similar to AFL, but when I use "export AFL_USE_ASAN=1 " and make with afl clang, it will fail because asan detects memory leaks. Have you ever encountered this situation before ? Thanks. |
|
I still can not reproduce the issue followed steps are : $ git clone https://github.com/yasm/yasm.git $ ./build/bin/yasm --version $ wget https://github.com/z1r00/fuzz_vuln/blob/main/yasm/segv/delete_Token/id:000176%2Csig:06%2Csrc:008442%2B007750%2Cop:splice%2Crep:128 @z1r00 and @DaisyPo Could you please suggest are these steps are correct |
|
I have compiled without ASAN and did not get any crash, @DaisyPo Could you please add the steps you have followed . |
|
Basically like this @ArchanaWind |
|
After make install what commands you have used to run the crash |
|
./yasm poc-file @ArchanaWind |
|
Same I have run but not seeing any crash seeing only @DaisyPo are seeing above errors and warnings while running poc file with yasm binary |
|
I see this: |
|
I am able to reproduce the issue, I have used wget command to download the poc file Thanks you @DaisyPo and @z1r00 Did any one have fix for this issue |


SEGV yasm/modules/preprocs/nasm/nasm-pp.c in delete_Token
project address
https://github.com/yasm/yasm
info
OS:Ubuntu20.04 TLS
Build: ./autogen.sh && make distclean && CC=gcc CXX=g++ CFLAGS="-fsanitize=address -fno-omit-frame-pointer -g" CXXFLAGS="-fsanitize=address -fno-omit-frame-pointer -g" ./configure --prefix=$PWD/build --disable-shared && make -j && make install
Poc
https://github.com/z1r00/fuzz_vuln/blob/main/yasm/segv/delete_Token/id:000176%2Csig:06%2Csrc:008442%2B007750%2Cop:splice%2Crep:128
ASAN Info
Reference
https://github.com/z1r00/fuzz_vuln/blob/main/yasm/segv/delete_Token/readme.md
The text was updated successfully, but these errors were encountered: