X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_utf8.h;h=2503f0644e605db64aae577b6523e641b3e54098;hp=d67910fb82aff5453541f01fe0b8d30e4a8e1db1;hb=950caf6998d2324cb98d795ea0957175f08984b8;hpb=2df2ceacd7f241852efbba3515c9535961e3f64c diff --git a/php_http_utf8.h b/php_http_utf8.h index d67910f..2503f06 100644 --- a/php_http_utf8.h +++ b/php_http_utf8.h @@ -555,7 +555,7 @@ static inline size_t utf8towc(unsigned *wc, const unsigned char *uc, size_t len) { unsigned char ub = utf8_mblen[*uc]; - if (!ub || ub > len || ub > 3) { + if (!ub || ub > len || ub > 4) { return 0; }