-
Notifications
You must be signed in to change notification settings - Fork 542
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 Perl_pad_free (pad.c:1792) #15608
Comments
From @geeknikTriggered in Perl v5.25.5 (v5.25.4-110-g95c0a76) with AFL+ASAN. Two issues here; first, orig107 triggers the heap-buffer-overflow: ./perl orig107
|
From @geeknik |
From @tonycozOn Sat, 17 Sep 2016 11:11:34 -0700, brian.carpenter@gmail.com wrote:
Simplified version attached, it's: qq{@k[sub{py]*{;qq{@k[(A..B)=sub{px]]]}}sub{/(.*)/}XXX}}} where XXX is a \x1E character. Tony |
From @tonycoz |
The RT System itself - Status changed from 'new' to 'open' |
From @tonycozOn Sat, 17 Sep 2016 11:11:34 -0700, brian.carpenter@gmail.com wrote:
These both require feeding code to the interpreter, so aren't security issues. Making this public. Tony |
I note that with latest blead I don't see any access violation in @tonycoz's short version (assuming I've correctly unmangled what happened to it in the transition to github), but I do still see an access violation from the code in orig107. |
I see the same. IIRC the problem was PL_compcv being restored (from the save stack) before the shift-reduce stack is cleared, so the pad entry was being freed from the wrong CV. I don't see a simple fix. |
Migrated from rt.perl.org#129292 (status was 'open')
Searchable as RT129292$
The text was updated successfully, but these errors were encountered: