summaryrefslogtreecommitdiff
path: root/ext/intl/php_intl.c
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2012-07-05 20:31:58 +0200
committerNikita Popov <nikic@php.net>2012-07-05 20:41:54 +0200
commit157ddd95773114c1148536b4b32fcbedf0c79b20 (patch)
tree1a98388c9e0219156396e8d7871ecd444a3bf3d5 /ext/intl/php_intl.c
parent88f46b162b3bf9bc9a7a1d3d7280f702f5b9f501 (diff)
downloadphp-git-157ddd95773114c1148536b4b32fcbedf0c79b20.tar.gz
Fix potential integer overflow in nl2br
The buffer size was calculated manually, thus creating integer overflows for very large inputs, e.g. nl2br(str_repeat("\n", 613566757)). The code now uses safe_emalloc, thus making the code throw an error instead of crashing.
Diffstat (limited to 'ext/intl/php_intl.c')
0 files changed, 0 insertions, 0 deletions