-
Notifications
You must be signed in to change notification settings - Fork 571
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_vivify_ref (pp_hot.c:4362) #15762
Comments
From @geeknikTriggered with Perl v5.25.7-98-gdf13534 while fuzzing with AFL. However, it perl -e 'map$$_=0,%$T=%::' ==14745==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6210000114f0 is located 0 bytes to the right of 4080-byte region SUMMARY: AddressSanitizer: heap-buffer-overflow /root/perl/pp_hot.c:4362 Perl 5.20.2 fails like so: |
From @tonycozOn Sun, 11 Dec 2016 14:18:44 -0800, brian.carpenter@gmail.com wrote:
This looks like another stack-not-refcounted bug. Tony |
The RT System itself - Status changed from 'new' to 'open' |
From @tonycozOn Tue, 13 Dec 2016 21:11:01 -0800, tonyc wrote:
I can't reproduce the buffer overflow. The random behaviour is caused by hash randomization, so if you can still reproduce it, can you provide the hash seed where it occurs? Like this: PERL_HASH_SEED_DEBUG=1 ./perl -e 'map$$_=0,%$T=%::' You'll get something like: HASH_FUNCTION = HYBRID_OAATHU_SIPHASH_1_3 HASH_SEED = 0x9c21037e507a4e690fc406e7d29b44b960076c875b6852f8 PERTURB_KEYS = 1 (RANDOM) which in my case produced: perl: sv.c:6547: Perl_sv_clear: Assertion `((svtype)((sv)->sv_flags & 0xff)) != (svtype)0xff' failed. Tony |
From @iabynOn Tue, Jan 31, 2017 at 03:23:20PM -0800, Tony Cook via RT wrote:
I also cannot reproduce the buffer overflow: with both valgrind and ASAN I agree its a stack refcount issue. The code can be reduced further as map$$_=0,%$T=%:: The hash assign in list context leaves a fake glob on the stack which Given that this requires code which already dangerously manipulates globs I propose that the ticket be moved to the public queue, added to the -- |
From @iabynOn Mon, Feb 20, 2017 at 11:40:55AM +0000, Dave Mitchell wrote:
which I am now doing. -- |
Migrated from rt.perl.org#130321 (status was 'open')
Searchable as RT130321$
The text was updated successfully, but these errors were encountered: