]> granicus.if.org Git - php/commit
Move to unsigned types in phar
authorAnatol Belski <ab@php.net>
Tue, 17 Apr 2018 13:09:31 +0000 (15:09 +0200)
committerAnatol Belski <ab@php.net>
Wed, 18 Apr 2018 18:15:05 +0000 (20:15 +0200)
commit2e5ac355b9b578e5d1e460f2b2f4205f8a7c87b3
tree4e889adcbc69cf8c3a1f3ad2210dac034995e496
parent8327c4c3bd8844f3b312ac9d72cb940e73e48109
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.
12 files changed:
ext/phar/dirstream.c
ext/phar/func_interceptors.c
ext/phar/phar.c
ext/phar/phar_internal.h
ext/phar/phar_object.c
ext/phar/phar_path_check.c
ext/phar/phar_path_check.re
ext/phar/php_phar.h
ext/phar/stream.c
ext/phar/tar.c
ext/phar/util.c
ext/phar/zip.c