Parent Directory | Revision Log | Revision Graph
Import upstream sources
1 | --- php-5.3.3/ext/mbstring/libmbfl/mbfl/mbfilter.c.cve4156 |
2 | +++ php-5.3.3/ext/mbstring/libmbfl/mbfl/mbfilter.c |
3 | @@ -1397,6 +1397,10 @@ mbfl_strcut( |
4 | start = string->val + from; |
5 | end = start + (length & -4); |
6 | } else if ((encoding->flag & MBFL_ENCTYPE_SBCS)) { |
7 | + if (from + length >= string->len) { |
8 | + length = string->len - from; |
9 | + } |
10 | + |
11 | start = string->val + from; |
12 | end = start + length; |
13 | } else if (encoding->mblen_table != NULL) { |
admin@koozali.org | ViewVC Help |
Powered by ViewVC 1.2.1 |