1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

Fix access after end of search string in regex matcher

This commit is contained in:
Andreas Schwab
2011-11-29 10:52:22 +01:00
parent c5a0802a68
commit f3a6cc0a56
9 changed files with 34 additions and 22 deletions

View File

@ -176,7 +176,7 @@ STRXFRM (STRING_TYPE *dest, const STRING_TYPE *src, size_t n, __locale_t l)
idxmax = 0;
do
{
int32_t tmp = findidx (&usrc);
int32_t tmp = findidx (&usrc, -1);
rulearr[idxmax] = tmp >> 24;
idxarr[idxmax] = tmp & 0xffffff;