From: Arnaud Le Blanc Date: Sat, 6 Sep 2008 17:17:44 +0000 (+0000) Subject: Fixed #43540 (rfc1867 handler newlength problem) X-Git-Tag: BEFORE_HEAD_NS_CHANGE~478 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=860d7733ef1ef9099e861c725351522949216221;p=php Fixed #43540 (rfc1867 handler newlength problem) --- diff --git a/main/rfc1867.c b/main/rfc1867.c index 6cf4fe2a26..25c5b8befe 100644 --- a/main/rfc1867.c +++ b/main/rfc1867.c @@ -1177,7 +1177,7 @@ static SAPI_POST_HANDLER_FUNC(rfc1867_post_handler_unicode) /* if (sapi_module.input_filter(PARSE_POST, param, &u_val, u_val_len, &new_val_len TSRMLS_CC)) { */ if (php_rfc1867_callback != NULL) { multipart_event_formdata event_formdata; - size_t newlength = 0; + size_t newlength = (size_t) u_val_len; event_formdata.post_bytes_processed = SG(read_post_bytes); event_formdata.name = ZSTR(param);