]> granicus.if.org Git - php/commit
Fix erroneous assertions
authorChristoph M. Becker <cmbecker69@gmx.de>
Thu, 9 May 2019 14:54:11 +0000 (16:54 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Thu, 9 May 2019 14:54:11 +0000 (16:54 +0200)
commit27f168cf638183716d02ff1973856c8d5ef71273
tree6f642f83a4ebc5a7f5e1dfe8c6ae199699d7bc7f
parent35c80583f08c0af3d01715cb8feeca6d0f284545
Fix erroneous assertions

Since PHP strings are binary safe (i.e. they may contain NUL bytes), we
must not assume that strlen()/wcslen() actually return the length of
the string.  Only if the given in_len is zero, it is safe to assert
this.
win32/codepage.c