projects
/
external
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68f5a66
)
(re_string_char_size_at): Don't look beyond valid_len wide chars.
author
Ulrich Drepper
<drepper@redhat.com>
Tue, 11 Nov 2003 06:58:52 +0000
(06:58 +0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Tue, 11 Nov 2003 06:58:52 +0000
(06:58 +0000)
posix/regex_internal.h
patch
|
blob
|
history
diff --git
a/posix/regex_internal.h
b/posix/regex_internal.h
index
b2fe766
..
5e113d7
100644
(file)
--- a/
posix/regex_internal.h
+++ b/
posix/regex_internal.h
@@
-702,7
+702,7
@@
re_string_char_size_at (pstr, idx)
int byte_idx;
if (MB_CUR_MAX == 1)
return 1;
- for (byte_idx = 1; idx + byte_idx < pstr->len; ++byte_idx)
+ for (byte_idx = 1; idx + byte_idx < pstr->
valid_
len; ++byte_idx)
if (pstr->wcs[idx + byte_idx] != WEOF)
break;
return byte_idx;