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
ASAN: interceptors for fgets, fputs and puts #952
Comments
Fixed in https://reviews.llvm.org/D46545 and r334670 ("[ASAN] Fix fputs interception for 32-bit macOS"). The android test is still skipped due to fopen failing for some reason (could it be related to other errors in #316?). Original failure http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-android/builds/11563 (unchecked fopen result), with assertions added there is http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-android/builds/11600
|
@vitalybuka It looks like you are the admin for sanitizer-buildbot6, do you think you can get more information about why the fgets_fputs test fails? I was still not able to reproduce the issue locally. Otherwise, can I push a patch that removes |
I can try tomorrow.
…On Thu, Jun 14, 2018 at 2:18 PM Peter Wu ***@***.***> wrote:
@vitalybuka <https://github.com/vitalybuka> It looks like you are the
admin for sanitizer-buildbot6, do you think you can get more information
about why the fgets_fputs test fails? I was still not able to reproduce the
issue locally.
Otherwise, can I push a patch that removes XFAIL: android and precedes
the assert(fp) with perror("fopen"); printf("fopen(%s) = %p\n", testfile,
fp);? (Is this appropriate in LLVM development?)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#952 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABdeF5Z5ZLXYSKhzoEZnx6PqUxPLuKmUks5t8tMxgaJpZM4T1WJC>
.
|
@vitalybuka Good to know about this peculiarity of Is it possible to create files on the device directly? I think that this issue is also the reason why test/asan/TestCases/Linux/activation-options.cc fails on Android. |
I don't see direct ways now. https://github.com/llvm-project/llvm-project-20170507/tree/master/compiler-rt/test/sanitizer_common/android_commands should be expended for that. @eugenis Did I miss something? |
The following program contains a use-after-free, but this is currently not detected by ASAN:
fread/fwrite were handled in #793. Would it be worth adding interceptors for fgets, fputs and puts as well? glibc 2.27 also seems to have a fortified
__fgets_chk
that could potentially be intercepted as well.The text was updated successfully, but these errors were encountered: