-
Notifications
You must be signed in to change notification settings - Fork 560
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
heap buffer overflow (READ of size 13) #16735
Comments
From geeknik@protonmail.chThis "crafted" bit of code triggers a heap buffer overflow in Perl v5.29.3-58-g8fc05532ae. A similar bug was fixed with the release of 5.26.0 (71776ae) 0x60200000dc54 is located 0 bytes to the right of 4-byte region [0x60200000dc50,0x60200000dc54) SUMMARY: AddressSanitizer: heap-buffer-overflow (/usr/lib/x86_64-linux-gnu/libasan.so.3+0x5cf7e) |
From @tonycozOn Thu, 25 Oct 2018 08:25:59 -0700, geeknik@protonmail.ch wrote:
Bisects down to : commit 51684e3 regcomp.c: Change error reporting mechanism slightly :100644 100644 1e8266b67e9d0ce6233af3703aa84d6c4259a8e0 3c09bc713d5fe4042bbda695f899539af644e5a8 M regcomp.c Tony |
The RT System itself - Status changed from 'new' to 'open' |
From @khwilliamsonThank you for finding and reporting this I moved this ticket to the public queue as the bug is not in a stable release. The problem occurs when a substitute parse string is constructed. Any errors have to be translated back to the terms of the original string. This wasn't happening properly when the error was at the right edge of the new parse string. It has been fixed by commit 232b691 The test I added is slightly different than what the original does, which reduces to ./perl -Dr -e /[<DF>-/i where <DF> is the literal \xDF. It's a pain getting non-UTF-8 into our test files. So the added test doesn't do that, but still generates valgrind errors before the patch is applied. -- |
@khwilliamson - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#133620 (status was 'resolved')
Searchable as RT133620$
The text was updated successfully, but these errors were encountered: