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

Blacklist regexp errors silently lead to blacklist not working #17

Closed
ramosian-glider opened this issue Aug 31, 2015 · 3 comments
Closed

Comments

@ramosian-glider
Copy link
Member

Originally reported on Google Code with ID 17

The blacklist in the AddressSanitizer pass constructs one big regular expression from
the blacklist entries. If one of these list entries contains something illegal, then
the whole regex silently fails and nothing is blacklisted. Also no error is emitted
for this.

To test this, create a blacklist using:

fun:main
fun:foo??bar
fun:bar

The second line here is invalid (at least it seems to be in the C++ regular expression
library that is used, as it stopped my blacklist from working. Using this blacklist
won't have any effect, e.g. main will be instrumented.

Tested using LLVM/Clang/ASan SVN trunk revision 146212 on Linux.

Reported by decoder.oh on 2011-12-13 12:01:01

@ramosian-glider
Copy link
Member Author

r146503.

Reported by konstantin.s.serebryany on 2011-12-13 19:38:35

  • Status changed: Fixed

@ramosian-glider
Copy link
Member Author

Adding Project:AddressSanitizer as part of GitHub migration.

Reported by ramosian.glider on 2015-07-30 09:12:58

  • Labels added: ProjectAddressSanitizer

@kcc
Copy link
Contributor

kcc commented Dec 1, 2015

Seems to be fixed.

@kcc kcc closed this as completed Dec 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants