diff options
author | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-12-27 23:05:23 +0000 |
---|---|---|
committer | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-12-27 23:05:23 +0000 |
commit | 07469af0d944a96d65fca21e8912c12f2b6c8d3b (patch) | |
tree | 90909be9441e41ee4d43938d0640f64a556b05bb /ext/iconv | |
parent | 7980195d7c22efdfed2116892acf93a114901861 (diff) | |
download | php-git-07469af0d944a96d65fca21e8912c12f2b6c8d3b.tar.gz |
- Add missing sanity check.
Diffstat (limited to 'ext/iconv')
-rw-r--r-- | ext/iconv/iconv.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c index c58fcaf3c1..536b749c0c 100644 --- a/ext/iconv/iconv.c +++ b/ext/iconv/iconv.c @@ -2102,6 +2102,10 @@ PHP_FUNCTION(iconv_mime_decode_headers) break; } + if (decoded_header.c != NULL) { + break; + } + limit = decoded_header.c + decoded_header.len; for (p = decoded_header.c; p < limit; p++) { if (*p == ':') { |