]> granicus.if.org Git - php/commit
Fix out-of bounds access
authorZenju <zenju@gmx.de>
Sun, 12 Feb 2017 15:47:34 +0000 (16:47 +0100)
committerAnatol Belski <ab@php.net>
Fri, 6 Jul 2018 17:02:19 +0000 (19:02 +0200)
commit69a49af0d320be6d62028bd6a6996b49d4f200bc
tree440497ff57f33bd1eaf279801ff4f060d93fa8c3
parentb37dafcc232f71c1ae86ad819e68c201484dce39
Fix out-of bounds access

Test case: strnatcmp_ex(L"333", 3, L"333 ", 4, true)
The reason this bug didn't come up earlier is probably because most input strings are null-terminated.
ext/standard/strnatcmp.c