Skip to content

Commit

Permalink
Fix lookup of collation sequence value during regexp matching
Browse files Browse the repository at this point in the history
(cherry picked from commit d84acf3)
  • Loading branch information
Andreas Schwab authored and Petr Baudis committed May 12, 2010
1 parent 50a66cf commit b9b562e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2010-05-04 Andreas Schwab <schwab@redhat.com>

* posix/regexec.c (find_collation_sequence_value): Fix skipping
the wide char sequence of the collating element.

2010-05-03 Ulrich Drepper <drepper@redhat.com>

[BZ #11149]
Expand Down
2 changes: 1 addition & 1 deletion posix/regexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -3998,7 +3998,7 @@ find_collation_sequence_value (const unsigned char *mbs, size_t mbs_len)
/* Skip the collation sequence value. */
idx += sizeof (uint32_t);
/* Skip the wide char sequence of the collating element. */
idx = idx + sizeof (uint32_t) * (extra[idx] + 1);
idx = idx + sizeof (uint32_t) * (*(int32_t *) (extra + idx) + 1);
/* If we found the entry, return the sequence value. */
if (found)
return *(uint32_t *) (extra + idx);
Expand Down

0 comments on commit b9b562e

Please sign in to comment.