summaryrefslogtreecommitdiff
path: root/ext/mbstring/php_mbregex.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-01-29 12:19:28 +0100
committerNikita Popov <nikita.ppv@gmail.com>2020-01-29 12:19:28 +0100
commit5589bf4d4af830b2a081475cf8065bf1ed9cf19a (patch)
tree25f2212503d7f04f8912d5ff927e5f652f84d599 /ext/mbstring/php_mbregex.c
parent91f878779cdad878ae664e2abad83a2967ae56d1 (diff)
downloadphp-git-5589bf4d4af830b2a081475cf8065bf1ed9cf19a.tar.gz
Fix length inconsistency in mb_convert_encoding
Don't mix strlen() and ZSTR_LEN(). If the encoding contains a NULL byte, this will overflow the buffer. NULL bytes will still make this behave oddly because the consuming code will cut off the string there, but let's address that in master...
Diffstat (limited to 'ext/mbstring/php_mbregex.c')
0 files changed, 0 insertions, 0 deletions