Stanislav Malyshev
b815645aac
Fix test
2021-08-23 23:43:32 -07:00
Christoph M. Becker
2ff853aa11
Fix #81211 : Symlinks are followed when creating PHAR archive
...
It is insufficient to check whether the `base` is contained in `fname`;
we also need to ensure that `fname` is properly separated. And of
course, `fname` has to start with `base`.
2021-08-23 23:25:16 -07:00
Christoph M. Becker
c70a938f28
Skip test if A: drive exists
...
Otherwise the test case will fail for a very different reason.
2020-09-03 10:29:38 +02:00
Stanislav Malyshev
5b29af5c78
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #79877 : getimagesize function silently truncates after a null byte
Fix #79797 : Use of freed hash key in the phar_parse_zipfile function
2020-08-02 23:56:37 -07:00
Christoph M. Becker
7355ab8176
Fix #79797 : Use of freed hash key in the phar_parse_zipfile function
...
We must not use heap memory after we freed it.
2020-08-02 15:31:29 -07:00
Christoph M. Becker
ccca2c448d
Fix #79503 : Memory leak on duplicate metadata
...
Duplicate metadata can only happen if someone tampers with the phar, so
we can and should treat that as error.
2020-04-22 15:07:46 +02:00
Christoph M. Becker
7df594b943
Fix # 79171: heap-buffer-overflow in phar_extract_file
...
We must not access memory outside of the allocated buffer.
2020-02-17 00:20:04 -08:00
Stanislav Malyshev
6facfa59a5
Fix bug #79082 - Files added to tar with Phar::buildFromIterator have all-access permissions
2020-02-17 00:19:30 -08:00
Stanislav Malyshev
e5c95234d8
Fix bug #79082 - Files added to tar with Phar::buildFromIterator have all-access permissions
2020-02-16 22:38:38 -08:00
Christoph M. Becker
136f51f1e1
Fix #76584 : PharFileInfo::decompress not working
...
We actually have to decompress, when told to do so.
2020-01-28 10:31:36 +01:00
Nikita Popov
74ac3dd6e2
Merge branch 'PHP-7.2' into PHP-7.3
2019-10-10 16:14:37 +02:00
Nikita Popov
46561dab6a
Fix leak in phar open
2019-10-10 16:14:21 +02:00
Stanislav Malyshev
d69894734d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77919 : Potential UAF in Phar RSHUTDOWN
Update NEWS
Fix bug #78256 (heap-buffer-overflow on exif_process_user_comment)
Fix bug #78222 (heap-buffer-overflow on exif_scan_thumbnail)
2019-07-29 13:20:44 -07:00
Stanislav Malyshev
284fb08fdc
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #77919 : Potential UAF in Phar RSHUTDOWN
Update NEWS
Fix bug #78256 (heap-buffer-overflow on exif_process_user_comment)
Fix bug #78222 (heap-buffer-overflow on exif_scan_thumbnail)
2019-07-29 13:19:16 -07:00
Christoph M. Becker
cd1101e8c8
Fix #77919 : Potential UAF in Phar RSHUTDOWN
...
We have to properly clean up in case phar_flush() is failing.
We also make the expectation of the respective test case less liberal
to avoid missing such bugs in the future.
2019-07-29 13:18:27 -07:00
Christoph M. Becker
ec8457d982
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix tests for non English environments
2019-04-17 09:57:37 +02:00
Christoph M. Becker
6fe75f9e45
Fix tests for non English environments
2019-04-17 09:56:55 +02:00
Anatol Belski
1aa30bb71c
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix phar:// include handling with file cache
2019-04-10 14:56:29 +02:00
Anatol Belski
f31d7ca85e
Fix phar:// include handling with file cache
2019-04-10 14:55:15 +02:00
Xinchen Hui
b419590893
Fixed bug #77697 (Crash on Big_Endian platform)
2019-03-15 16:58:08 +08:00
Anatol Belski
a976283c34
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix test portability
2019-03-04 14:30:01 +01:00
Anatol Belski
040196972c
Fix test portability
2019-03-04 14:28:47 +01:00
Stanislav Malyshev
6d60ed69a1
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #77586 - phar_tar_writeheaders_int() buffer overflow
2019-03-03 23:33:48 -08:00
Stanislav Malyshev
3e8d8f7fb3
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #77586 - phar_tar_writeheaders_int() buffer overflow
2019-03-03 23:33:43 -08:00
Stanislav Malyshev
e0f5d62bd6
Fix bug #77586 - phar_tar_writeheaders_int() buffer overflow
2019-03-03 23:05:32 -08:00
Stanislav Malyshev
e3f7c352dc
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Update NEWS
Fix test error message
Fix bug #77563 - Uninitialized read in exif_process_IFD_in_MAKERNOTE
Fix bug #77540 - Invalid Read on exif_process_SOFn
Fix integer overflows on 32-bits
Fix #77431 SplFileInfo::__construct() accepts NUL bytes
Fix bug #77396 - Null Pointer Dereference in phar_create_or_parse_filename
2019-03-03 22:20:42 -08:00
Stanislav Malyshev
8363df3703
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Update NEWS
Fix test error message
Fix bug #77563 - Uninitialized read in exif_process_IFD_in_MAKERNOTE
Fix bug #77540 - Invalid Read on exif_process_SOFn
Fix integer overflows on 32-bits
Fix #77431 SplFileInfo::__construct() accepts NUL bytes
Fix bug #77396 - Null Pointer Dereference in phar_create_or_parse_filename
2019-03-03 22:20:35 -08:00
Stanislav Malyshev
7f0ab7c20c
Fix bug #77396 - Null Pointer Dereference in phar_create_or_parse_filename
2019-03-03 18:22:32 -08:00
Stanislav Malyshev
e40027ef0f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77369 - memcpy with negative length via crafted DNS response
Fix more issues with encodilng length
Fix #77270 : imagecolormatch Out Of Bounds Write on Heap
Fix bug #77380 (Global out of bounds read in xmlrpc base64 code)
Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
Fix #77269 : Potential unsigned underflow in gdImageScale
Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
Regenerate certs for openssl tests
2019-01-06 12:23:53 -08:00
Stanislav Malyshev
fe820fcba6
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #77369 - memcpy with negative length via crafted DNS response
Fix more issues with encodilng length
Fix #77270 : imagecolormatch Out Of Bounds Write on Heap
Fix bug #77380 (Global out of bounds read in xmlrpc base64 code)
Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
Fix #77269 : Potential unsigned underflow in gdImageScale
Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
Regenerate certs for openssl tests
2019-01-06 11:57:16 -08:00
Stanislav Malyshev
78bd347774
Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
2019-01-06 11:38:46 -08:00
Stanislav Malyshev
3d8d13f7b9
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #77143 - add more checks to buffer reads
Fix bug #77143 - add more checks to buffer reads
Fix #77020 : null pointer dereference in imap_mail
Don't need interactive progress on git clones in Travis
Fix TSRM signature - php_stream_stat macro has it's own TSRM
Regenerate certificates for openssl tests
Improve test for bug77022
2018-12-03 00:42:55 -08:00
Stanislav Malyshev
8fff90250b
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #77143 - add more checks to buffer reads
Fix bug #77143 - add more checks to buffer reads
Fix #77020 : null pointer dereference in imap_mail
2018-12-03 00:42:50 -08:00
Stanislav Malyshev
8ab5d22332
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fix bug #77143 - add more checks to buffer reads
Fix bug #77143 - add more checks to buffer reads
Fix #77020 : null pointer dereference in imap_mail
2018-12-03 00:42:45 -08:00
Stanislav Malyshev
5718d73dbb
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix bug #77143 - add more checks to buffer reads
2018-12-03 00:42:35 -08:00
Stanislav Malyshev
48f0f73f75
Fix bug #77143 - add more checks to buffer reads
2018-12-03 00:41:46 -08:00
Stanislav Malyshev
66a0f061f6
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix bug #77143 - add more checks to buffer reads
Fix #77020 : null pointer dereference in imap_mail
2018-12-03 00:39:03 -08:00
Stanislav Malyshev
54212674b9
Fix bug #77143 - add more checks to buffer reads
2018-12-03 00:03:10 -08:00
Stanislav Malyshev
1225467d8a
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix TSRM signature - php_stream_stat macro has it's own TSRM
Regenerate certificates for openssl tests
Improve test for bug77022
2018-12-02 15:12:15 -08:00
Stanislav Malyshev
f8eac1f438
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fix TSRM signature - php_stream_stat macro has it's own TSRM
Regenerate certificates for openssl tests
Improve test for bug77022
2018-12-02 13:38:59 -08:00
Stanislav Malyshev
6e3f5d57d4
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix TSRM signature - php_stream_stat macro has it's own TSRM
Regenerate certificates for openssl tests
Improve test for bug77022
2018-12-02 13:18:07 -08:00
Stanislav Malyshev
aabdb71dc3
Fix TSRM signature - php_stream_stat macro has it's own TSRM
2018-12-02 12:54:19 -08:00
Stanislav Malyshev
2fba1e2f59
Improve test for bug77022
2018-12-02 12:06:13 -08:00
Stanislav Malyshev
e614b12712
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
2018-12-01 21:48:44 -08:00
Stanislav Malyshev
c5869fd1c8
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
2018-12-01 21:48:40 -08:00
Stanislav Malyshev
09885f78c6
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
2018-12-01 21:48:35 -08:00
Stanislav Malyshev
cea277048d
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix bug #77022 - use file mode or umask for new files
2018-12-01 21:48:27 -08:00
Stanislav Malyshev
cc84d893c7
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #77022 - use file mode or umask for new files
2018-12-01 21:47:49 -08:00
Stanislav Malyshev
8136d130b6
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #77022 - use file mode or umask for new files
2018-12-01 21:47:44 -08:00
Stanislav Malyshev
1aec05defd
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fix bug #77022 - use file mode or umask for new files
2018-12-01 21:47:37 -08:00