diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-09-02 16:43:00 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-09-02 16:45:25 +0200 |
commit | 54dbd3eccc867f456f257ce11556b50fcbee2ccf (patch) | |
tree | ec4b61f9cecc86f3cb7d20bbfe2fb73c413fc756 /ext/phar/tests | |
parent | 2e9e706a8271bbb42ad696c3383912facdd7d45f (diff) | |
download | php-git-54dbd3eccc867f456f257ce11556b50fcbee2ccf.tar.gz |
Fix binary-safety of parse_url
php_parse_url() is intended to support strings that are not zero
terminated. We can't use strcspn in the implementation.
As we have two uses of strcspn, add a helper.
Diffstat (limited to 'ext/phar/tests')
0 files changed, 0 insertions, 0 deletions