Stanislav Malyshev
57e7c3aac1
Simplify expression and remove the possibility of div by 0
...
Maybe should use exp2() but not sure about how supported it is.
2019-07-07 16:16:05 -07:00
Nikita Popov
3645292235
Merge branch 'PHP-7.4'
2019-06-19 15:09:39 +02:00
Nikita Popov
1c018af682
Fix shift UB in php_ifd_get32s
2019-06-19 15:09:00 +02:00
twosee
63171d88f2
Add do...while(0) for RETURN_* and ZVAL_* APIs
...
Closes GH-4255.
2019-06-12 16:17:16 +02:00
Nikita Popov
7686b0b889
Merge branch 'PHP-7.4'
2019-06-05 14:53:50 +02:00
Nikita Popov
a31f46421d
Allow exceptions in __toString()
...
RFC: https://wiki.php.net/rfc/tostring_exceptions
And convert some object to string conversion related recoverable
fatal errors into Error exceptions.
Improve exception safety of internal code performing string
conversions.
2019-06-05 14:25:07 +02:00
Stanislav Malyshev
d99de36e53
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix bug #77988 - heap-buffer-overflow on php_jpg_get16
2019-05-27 17:28:34 -07:00
Stanislav Malyshev
670c2ee685
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix bug #77988 - heap-buffer-overflow on php_jpg_get16
2019-05-27 17:28:29 -07:00
Stanislav Malyshev
13dffa9d32
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #77988 - heap-buffer-overflow on php_jpg_get16
2019-05-27 17:28:25 -07:00
Stanislav Malyshev
dc1d99e772
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #77988 - heap-buffer-overflow on php_jpg_get16
2019-05-27 17:28:20 -07:00
Stanislav Malyshev
73ff4193be
Fix bug #77988 - heap-buffer-overflow on php_jpg_get16
2019-05-27 17:28:09 -07:00
Stanislav Malyshev
bc8822361a
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix bug #77950 - Heap-buffer-overflow in _estrndup via exif_process_IFD_TAG
2019-04-30 00:06:15 -07:00
Stanislav Malyshev
db0de953ba
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix bug #77950 - Heap-buffer-overflow in _estrndup via exif_process_IFD_TAG
2019-04-30 00:06:10 -07:00
Stanislav Malyshev
66b32f25d5
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #77950 - Heap-buffer-overflow in _estrndup via exif_process_IFD_TAG
2019-04-30 00:05:43 -07:00
Stanislav Malyshev
cb5af4e8a0
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #77950 - Heap-buffer-overflow in _estrndup via exif_process_IFD_TAG
2019-04-30 00:05:32 -07:00
Stanislav Malyshev
f80ad18afa
Fix bug #77950 - Heap-buffer-overflow in _estrndup via exif_process_IFD_TAG
...
I do not completely understand what is going on there, but I am pretty
sure dir_entry <= offset_base if not a normal situation, so we better not
to rely on such dir_entry.
2019-04-30 00:05:23 -07:00
Dmitry Stogov
e188e4170f
Use ZEND_TRY_ASSIGN_REF_... macros for arguments passed to internal function by reference
2019-04-24 18:28:29 +03:00
Dmitry Stogov
2e4686b566
Use ZEND_TRY_ASSIGN_REF_... macros for arguments passed to internal function by reference
2019-04-24 18:16:47 +03:00
Dmitry Stogov
34db07567d
Use ZEND_TRA_ASSIGN_REF_... macros for by reference arguments of internal functions.
2019-04-24 16:14:48 +03:00
Kalle Sommer Nielsen
eb8a19c8ad
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Remove dead JPEG2000 code
2019-04-02 21:18:48 +03:00
Kalle Sommer Nielsen
dce7f244a9
Remove dead JPEG2000 code
2019-04-02 21:18:06 +03:00
Remi Collet
2b41d1fb0c
Merge branch 'PHP-7.4'
...
* PHP-7.4:
fix paste issue
2019-04-02 11:06:22 +02:00
Remi Collet
8354c28cc5
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
fix paste issue
2019-04-02 11:06:06 +02:00
Remi Collet
002983e463
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
fix paste issue
2019-04-02 11:05:54 +02:00
Remi Collet
f7755163b7
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
fix paste issue
2019-04-02 11:05:39 +02:00
Remi Collet
dc1cd3daf2
fix paste issue
2019-04-02 11:05:09 +02:00
Christoph M. Becker
eb7a7e4b53
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Pointer arithmetic on void pointers is illegal
2019-04-02 10:43:23 +02:00
Christoph M. Becker
efb4597ecc
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Pointer arithmetic on void pointers is illegal
2019-04-02 10:42:35 +02:00
Christoph M. Becker
b8fdaa7c42
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Pointer arithmetic on void pointers is illegal
2019-04-02 10:41:26 +02:00
Christoph M. Becker
f6efe70505
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Pointer arithmetic on void pointers is illegal
2019-04-02 10:40:56 +02:00
Christoph M. Becker
01a4de5c58
Pointer arithmetic on void pointers is illegal
...
We quick-fix this by casting to char*; it might be more appropriate to
use char pointers in the first place.
2019-04-02 10:39:44 +02:00
Stanislav Malyshev
bef66e1b6f
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fixed bug #77831 - Heap-buffer-overflow in exif_iif_add_value in EXIF
2019-04-02 00:13:11 -07:00
Stanislav Malyshev
c0af0ae5a4
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fixed bug #77831 - Heap-buffer-overflow in exif_iif_add_value in EXIF
2019-04-02 00:13:06 -07:00
Stanislav Malyshev
da5fbb8c36
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fixed bug #77831 - Heap-buffer-overflow in exif_iif_add_value in EXIF
2019-04-02 00:13:00 -07:00
Stanislav Malyshev
c83af86f8b
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #77831 - Heap-buffer-overflow in exif_iif_add_value in EXIF
2019-04-02 00:12:54 -07:00
Stanislav Malyshev
887a7b5714
Fixed bug #77831 - Heap-buffer-overflow in exif_iif_add_value in EXIF
2019-04-02 00:12:26 -07:00
Stanislav Malyshev
a1631ac57b
Fix bug #77753 - Heap-buffer-overflow in php_ifd_get32s
2019-03-31 23:11:34 -07:00
Stanislav Malyshev
f45e7861ef
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix bug #77753 - Heap-buffer-overflow in php_ifd_get32s
2019-03-31 23:10:04 -07:00
Stanislav Malyshev
9efaac30ae
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #77753 - Heap-buffer-overflow in php_ifd_get32s
2019-03-31 23:09:57 -07:00
Stanislav Malyshev
f3ab302270
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #77753 - Heap-buffer-overflow in php_ifd_get32s
2019-03-31 23:09:18 -07:00
Stanislav Malyshev
f3aefc6d07
Fix bug #77753 - Heap-buffer-overflow in php_ifd_get32s
2019-03-31 23:09:06 -07:00
Stanislav Malyshev
b82437eedd
Fix bug #77563 - Uninitialized read in exif_process_IFD_in_MAKERNOTE
...
Also fix for bug #77659
2019-03-03 23:34:00 -08:00
Stanislav Malyshev
30d2b94a2e
Fix bug #77540 - Invalid Read on exif_process_SOFn
2019-03-03 23:34:00 -08:00
Stanislav Malyshev
46e79c9351
Fix integer overflows on 32-bits
2019-03-03 23:34:00 -08:00
Stanislav Malyshev
534a18c08f
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
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:49 -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
8ac6fee856
Fix bug #77563 - Uninitialized read in exif_process_IFD_in_MAKERNOTE
...
Also fix for bug #77659
2019-03-03 18:35:43 -08:00
Stanislav Malyshev
5f0e62a3e5
Fix bug #77540 - Invalid Read on exif_process_SOFn
2019-03-03 18:35:26 -08:00
Stanislav Malyshev
5e824a88d0
Fix integer overflows on 32-bits
2019-03-03 18:35:04 -08:00