summaryrefslogtreecommitdiff
path: root/ext/pdo_sqlite/php_pdo_sqlite_int.h
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2018-07-12 19:49:32 +0200
committerAnatol Belski <ab@php.net>2018-07-12 19:49:32 +0200
commit99fe18503ad61472ef8f4009a9234bfc2571d027 (patch)
treeffb378c46ebe5e95a320a4621df05b50d6d0e82e /ext/pdo_sqlite/php_pdo_sqlite_int.h
parent236ae06e0bee820ba0fb1d2fcd9160f279b48cae (diff)
downloadphp-git-99fe18503ad61472ef8f4009a9234bfc2571d027.tar.gz
Fixed RecursiveDirectoryIterator with long path or with edge case length
The search path needs to be appended with the wild card. Till now, an edge case existed, so then if a path is 259 bytes long, which is smaller _MAX_PATH, the suffix would cause the final search path to become longer than _MAX_PATH. It is an edge case, when the starting path happens to have a specific length. If the starting path was longer than _MAX_PATH or the addition of "\\*" would not exceed _MAX_PATH, the function was correct. Except for rewind, which was broken in the case of the long path.
Diffstat (limited to 'ext/pdo_sqlite/php_pdo_sqlite_int.h')
0 files changed, 0 insertions, 0 deletions