]>
Commit | Line | Data |
---|---|---|
12788f63 MT |
1 | Index: glibc-2.11-382-g1cdb215/posix/regexec.c |
2 | =================================================================== | |
3 | --- glibc-2.11-382-g1cdb215.orig/posix/regexec.c | |
4 | +++ glibc-2.11-382-g1cdb215/posix/regexec.c | |
5 | @@ -4031,7 +4031,7 @@ find_collation_sequence_value (const uns | |
6 | /* Skip the collation sequence value. */ | |
7 | idx += sizeof (uint32_t); | |
8 | /* Skip the wide char sequence of the collating element. */ | |
9 | - idx = idx + sizeof (uint32_t) * (extra[idx] + 1); | |
10 | + idx = idx + sizeof (uint32_t) * (*(int32_t *) (extra + idx) + 1); | |
11 | /* If we found the entry, return the sequence value. */ | |
12 | if (found) | |
13 | return *(uint32_t *) (extra + idx); |