Req #71734 [Opn]: mbfl_string only support unsigned int for string length

From: Date: Tue, 08 Mar 2016 02:07:55 +0000
Subject: Req #71734 [Opn]: mbfl_string only support unsigned int for string length
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-199661@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71734&edit=1

 ID:                 71734
 Updated by:         yohgaki@php.net
 Reported by:        yohgaki@php.net
 Summary:            mbfl_string only support unsigned int for string
                     length
 Status:             Open
 Type:               Feature/Change Request
 Package:            mbstring related
 Operating System:   irrelevant
 PHP Version:        Next Minor Version
 Block user comment: N
 Private report:     N

 New Comment:

Related commit
http://git.php.net/?p=php-src.git;a=commitdiff;h=89a43425072feda1fc5546aaaaa7be7737c4f197


Previous Comments:
------------------------------------------------------------------------
[2016-03-07 22:04:44] yohgaki@php.net

Description:
------------
mbstring's string is defined as follows

mbfl_string.h

/*
 * string object
 */
typedef struct _mbfl_string {
	enum mbfl_no_language no_language;
	enum mbfl_no_encoding no_encoding;
	unsigned char *val;
	unsigned int len;
} mbfl_string;

"unsigned int len" should be extended to "size_t len" to support 2GB>
strings.



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=71734&edit=1


Thread (5 messages)

« previous php.bugs (#199661) next »