-
Notifications
You must be signed in to change notification settings - Fork 467
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: buffer-overflow (OOB read) against some invalid input (sass_context.cpp:81) #2657
Labels
Comments
Another heap buffer overflow happens nearby:
sample inputs: |
I believe this is a bug in utf8cpp. I've opened an issue (ledger/utfcpp#2) and sent a fix (ledger/utfcpp#3). |
Nevermind, was looking at the wrong utfcpp mirror. The right one is probably https://github.com/nemtrif/utfcpp. Checking to see if the bug is already fixed there. |
glebm
added a commit
to glebm/libsass
that referenced
this issue
Nov 28, 2018
Fixes sass#2657 Incorporates the following utfcpp patches: 1. Sass addition of `retreat`. nemtrif/utfcpp#20 2. Fix for `replace_invalid` throwing on incomplete sequence at the end of the input. nemtrif/utfcpp#21
xzyfer
pushed a commit
that referenced
this issue
Nov 28, 2018
Fixes #2657 Incorporates the following utfcpp patches: 1. Sass addition of `retreat`. nemtrif/utfcpp#20 2. Fix for `replace_invalid` throwing on incomplete sequence at the end of the input. nemtrif/utfcpp#21
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We found with our fuzzer some buffer over flow errors during
handle_error
(45f5087) against some invalid inputs when compiled with Address Sanitizer.sample input files:
test_m001.txt
test_m002.txt
test_m003.txt
The text was updated successfully, but these errors were encountered: