Skip to content

Commit

Permalink
PATCH: GH #17370, read beyond buffer in grok_inf_nan
Browse files Browse the repository at this point in the history
Like GH #17367, this was caused by a failure to check that we aren't at
the end of the buffer after advancing the ptr to it.
  • Loading branch information
khwilliamson committed Dec 17, 2019
1 parent 5af38e4 commit 9f16475
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion t/re/pat.t
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ BEGIN {

skip_all_without_unicode_tables();

plan tests => 1012; # Update this when adding/deleting tests.
plan tests => 1013; # Update this when adding/deleting tests.

run_tests() unless caller;

Expand Down Expand Up @@ -2084,6 +2084,9 @@ CODE
{ # [perl #133871], ASAN/valgrind out-of-bounds access
fresh_perl_like('qr/\p{nv:NAnq}/', qr/Can't find Unicode property definition/, {}, "GH #17367");
}
{ # GH #17370, ASAN/valgrind out-of-bounds access
fresh_perl_like('qr/\p{nv:qnan}/', qr/Can't find Unicode property definition/, {}, "GH #17370");
}

SKIP:
{ # [perl #133921], segfault
Expand Down

0 comments on commit 9f16475

Please sign in to comment.