summaryrefslogtreecommitdiff
path: root/ext/phar/php_phar.h
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2018-04-17 15:09:31 +0200
committerAnatol Belski <ab@php.net>2018-04-18 20:15:05 +0200
commit2e5ac355b9b578e5d1e460f2b2f4205f8a7c87b3 (patch)
tree4e889adcbc69cf8c3a1f3ad2210dac034995e496 /ext/phar/php_phar.h
parent8327c4c3bd8844f3b312ac9d72cb940e73e48109 (diff)
downloadphp-git-2e5ac355b9b578e5d1e460f2b2f4205f8a7c87b3.tar.gz
Move to unsigned types in phar
Preventing integer overflows in principle, which allows to avoid additional range checks. The phar format is based on 32-bit lengths, so the storage sizes was kept same.
Diffstat (limited to 'ext/phar/php_phar.h')
-rw-r--r--ext/phar/php_phar.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/phar/php_phar.h b/ext/phar/php_phar.h
index efaacc5781..e21002afa6 100644
--- a/ext/phar/php_phar.h
+++ b/ext/phar/php_phar.h
@@ -34,7 +34,7 @@ extern zend_module_entry phar_module_entry;
#define PHP_PHAR_API PHPAPI
#endif
-PHP_PHAR_API int phar_resolve_alias(char *alias, int alias_len, char **filename, int *filename_len);
+PHP_PHAR_API int phar_resolve_alias(char *alias, size_t alias_len, char **filename, size_t *filename_len);
#endif /* PHP_PHAR_H */