sesser Mon Oct 7 12:05:29 2002 EDT
Modified files:
/php4/ext/mbstring mbfilter.c
Log:
fixing possible off by one in error case
Index: php4/ext/mbstring/mbfilter.c
diff -u php4/ext/mbstring/mbfilter.c:1.43 php4/ext/mbstring/mbfilter.c:1.44
--- php4/ext/mbstring/mbfilter.c:1.43 Sun Oct 6 05:36:26 2002
+++ php4/ext/mbstring/mbfilter.c Mon Oct 7 12:05:28 2002
@@ -79,7 +79,7 @@
*
*/
-/* $Id: mbfilter.c,v 1.43 2002/10/06 09:36:26 sebastian Exp $ */
+/* $Id: mbfilter.c,v 1.44 2002/10/07 16:05:28 sesser Exp $ */
#ifdef HAVE_CONFIG_H
@@ -3587,7 +3587,7 @@
mbfl_filt_conv_html_dec_ctor(mbfl_convert_filter *filter TSRMLS_DC)
{
filter->status = 0;
- filter->cache = (int)mbfl_malloc(html_enc_buffer_size);
+ filter->cache = (int)mbfl_malloc(html_enc_buffer_size+1);
}
static void
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php