]> granicus.if.org Git - php/commit
base64_decode: fix bug #72152 (fail on NUL bytes in strict mode)
authorLauri Kenttä <lauri.kentta@gmail.com>
Wed, 25 May 2016 18:02:41 +0000 (21:02 +0300)
committerNikita Popov <nikic@php.net>
Tue, 5 Jul 2016 14:51:36 +0000 (16:51 +0200)
commit260c07db850266d2d65cff446ec98d4a4752d41c
treeca98717c93022eb6c1db234390ca60040e25e68a
parentfbc74bb5f9df22a038a00f1f0e2437f1def81b93
base64_decode: fix bug #72152 (fail on NUL bytes in strict mode)

This added check is actually for NOT failing in NON-strict mode.
The ch == -2 check later causes the desired failure in strict mode.
ext/standard/base64.c
ext/standard/tests/strings/bug72152.phpt [new file with mode: 0644]