Skip to content
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 caused by a READ memory access #5

Open
Cvjark opened this issue Jun 30, 2022 · 1 comment
Open

SEGV caused by a READ memory access #5

Cvjark opened this issue Jun 30, 2022 · 1 comment

Comments

@Cvjark
Copy link

Cvjark commented Jun 30, 2022

hi, i compile this repo with ASAN to do some test, after compiling I feed test.png in this repo and it crash.
compile command: AFL_USE_ASAN=1 make CC=afl-clang-fast LDFLAGS="-lopencv"

and here is the crash info:

AddressSanitizer:DEADLYSIGNAL

==110236==ERROR: AddressSanitizer: SEGV on unknown address 0x000000001c78 (pc 0x0000004f4d2e bp 0x7ffeb85f5cd0 sp 0x7ffeb85f5bc0 T0)
==110236==The signal is caused by a READ memory access.
    #0 0x4f4d2e in load_image /home/bupt/Desktop/jpec/main.c:69:22
    #1 0x4f49b0 in main /home/bupt/Desktop/jpec/main.c:46:20
    #2 0x7ff2c275bc86 in __libc_start_main /build/glibc-CVJwZb/glibc-2.27/csu/../csu/libc-start.c:310
    #3 0x41c759 in _start (/home/bupt/Desktop/jpec/jpec+0x41c759)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/bupt/Desktop/jpec/main.c:69:22 in load_image
==110236==ABORTING

command to reproduce the crash: ./jpec test.png
test.zip

is it some kind of bug?

@catwell
Copy link

catwell commented Jun 30, 2022

I don't think anyone is maintaining this anymore, but this looks like an OpenCV version issue. main.c expects OpenCV which is quite old and maybe not the one you are linking. This issue should not affect the lib itself, which does not rely on OpenCV (only main.c does).

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

No branches or pull requests

2 participants