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
  • Loading branch information
Andreas Schwab authored and Ulrich Drepper committed May 5, 2010
1 parent 5d05c55 commit d84acf3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
2010-05-05 Andreas Schwab <schwab@redhat.com>
2010-05-04 Andreas Schwab <schwab@redhat.com>

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

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

Expand Down
2 changes: 1 addition & 1 deletion posix/regexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -4031,7 +4031,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 d84acf3

Please sign in to comment.