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

AddressSanitizer CHECK failed when free unsigned char point #825

Closed
yogurfrul opened this issue Jun 23, 2017 · 2 comments
Closed

AddressSanitizer CHECK failed when free unsigned char point #825

yogurfrul opened this issue Jun 23, 2017 · 2 comments

Comments

@yogurfrul
Copy link

yogurfrul commented Jun 23, 2017

I'm doing some libfuzzer test on Android O,I got the error as blow:

`==7687==AddressSanitizer CHECK failed: external/compiler-rt/lib/asan/asan_allocator.cc:147 "((alloc_magic[0])) == ((kAllocBegMagic))" (0xc0c000cc6e96b9, 0xcc6e96b9)
#0 0x7776c5abdf (/system/lib64/libclang_rt.asan-aarch64-android.so+0x7cbdf)

#1 0x7776c6e533  (/system/lib64/libclang_rt.asan-aarch64-android.so+0x90533)

#2 0x7776bfd123  (/system/lib64/libclang_rt.asan-aarch64-android.so+0x1f123)

#3 0x7776bfce0b  (/system/lib64/libclang_rt.asan-aarch64-android.so+0x1ee0b)

#4 0x7776bfccab  (/system/lib64/libclang_rt.asan-aarch64-android.so+0x1ecab)

#5 0x7776c52b97  (/system/lib64/libclang_rt.asan-aarch64-android.so+0x74b97)

#6 0x5c2dd056cb  (/data/nativetest64/fuzzers/hi_omx_fuzzer/hi_omx_fuzzer+0x1a6cb)`

the error point to the code :

`typedef unsigned char HI_U8;

HI_U8* u32TmpData = (HI_U8*)malloc(framesize);

//some other codes

free(u32TmpData );`

@yogurfrul
Copy link
Author

however when I run the fuzzer on the crash reproducer ,it come through, no crash
and
when I add use_counters=0 runtime flags to disable 8bit-counters to guide fuzzer, it works ok

any idea?~

@morehouse
Copy link
Contributor

Please post a repro if still an issue.

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