ASAN:SIGSEGV
=================================================================
==12505==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000028 (pc 0x000000404345 bp 0x7ffded8a22b0 sp 0x7ffded8a1ff0 T0)
#0 0x404344 in genann_run /home/mfc_fuzz/genann/genann.c:213
#1 0x40641a in genann_train /home/mfc_fuzz/genann/genann.c:280
#2 0x40145e in main /home/mfc_fuzz/genann/example1.c:35
#3 0x7fde1d4fd82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#4 0x4018a8 in _start (/home/mfc_fuzz/genann/example1+0x4018a8)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/mfc_fuzz/genann/genann.c:213 genann_run
==12505==ABORTING
You're giving it bad data. Of course it will crash.
For example, you're telling it to expect an array of four outputs, then you're giving it the last item in the array. So of course it's going to read past the end. What did you expect? Essentially any C function you give a bad pointer to will crash.
A stack buffer overflow has been found in genann.c:299:
The program I ran was example1, but I have made some changes in that file.
The example1 I wrote has been placed at : https://github.com/fCorleone/fuzz_programs/blob/master/genann/example1.c
The input file has been put here:
https://github.com/fCorleone/fuzz_programs/blob/master/genann/testcase
The text was updated successfully, but these errors were encountered: