History log of /PHP-8.4/ext/exif/exif.c (Results 76 – 100 of 475)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# d59aac58 18-Jul-2019 Nikita Popov

Report errors from stream read and write operations

The php_stream_read() and php_stream_write() functions now return
an ssize_t value, with negative results indicating failure. Function

Report errors from stream read and write operations

The php_stream_read() and php_stream_write() functions now return
an ssize_t value, with negative results indicating failure. Functions
like fread() and fwrite() will return false in that case.

As a special case, EWOULDBLOCK and EAGAIN on non-blocking streams
should not be regarded as error conditions, and be reported as
successful zero-length reads/writes instead. The handling of EINTR
remains unclear and is internally inconsistent (e.g. some code-paths
will automatically retry on EINTR, while some won't).

I'm landing this now to make sure the stream wrapper ops API changes
make it into 7.4 -- however, if the user-facing changes turn out to
be problematic we have the option of clamping negative returns to
zero in php_stream_read() and php_stream_write() to restore the
old behavior in a relatively non-intrusive manner.

show more ...


# 57e7c3aa 07-Jul-2019 Stanislav Malyshev

Simplify expression and remove the possibility of div by 0

Maybe should use exp2() but not sure about how supported it is.


# 1c018af6 19-Jun-2019 Nikita Popov

Fix shift UB in php_ifd_get32s


# 63171d88 12-Jun-2019 twosee

Add do...while(0) for RETURN_* and ZVAL_* APIs

Closes GH-4255.


Revision tags: php-7.1.29, php-7.2.18, php-7.3.5, php-7.2.18RC1, php-7.3.5RC1, php-7.2.17, php-7.3.4, php-7.1.28, php-7.3.4RC1, php-7.2.17RC1, php-7.1.27, php-7.3.3, php-7.2.16
# a31f4642 26-Feb-2019 Nikita Popov

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 excep

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.

show more ...


# 73ff4193 28-May-2019 Stanislav Malyshev

Fix bug #77988 - heap-buffer-overflow on php_jpg_get16


# f80ad18a 30-Apr-2019 Stanislav Malyshev

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

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.

show more ...


# e188e417 24-Apr-2019 Dmitry Stogov

Use ZEND_TRY_ASSIGN_REF_... macros for arguments passed to internal function by reference


# 34db0756 24-Apr-2019 Dmitry Stogov

Use ZEND_TRA_ASSIGN_REF_... macros for by reference arguments of internal functions.


# dce7f244 02-Apr-2019 Kalle Sommer Nielsen

Remove dead JPEG2000 code


# dc1cd3da 02-Apr-2019 Remi Collet

fix paste issue


# 01a4de5c 02-Apr-2019 Christoph M. Becker

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.


# 887a7b57 02-Apr-2019 Stanislav Malyshev

Fixed bug #77831 - Heap-buffer-overflow in exif_iif_add_value in EXIF


# a1631ac5 18-Mar-2019 Stanislav Malyshev

Fix bug #77753 - Heap-buffer-overflow in php_ifd_get32s


# f3aefc6d 18-Mar-2019 Stanislav Malyshev

Fix bug #77753 - Heap-buffer-overflow in php_ifd_get32s


# b82437ee 02-Mar-2019 Stanislav Malyshev

Fix bug #77563 - Uninitialized read in exif_process_IFD_in_MAKERNOTE

Also fix for bug #77659


# 30d2b94a 02-Mar-2019 Stanislav Malyshev

Fix bug #77540 - Invalid Read on exif_process_SOFn


# 46e79c93 02-Mar-2019 Stanislav Malyshev

Fix integer overflows on 32-bits


# 8ac6fee8 02-Mar-2019 Stanislav Malyshev

Fix bug #77563 - Uninitialized read in exif_process_IFD_in_MAKERNOTE

Also fix for bug #77659


# 5f0e62a3 02-Mar-2019 Stanislav Malyshev

Fix bug #77540 - Invalid Read on exif_process_SOFn


# 5e824a88 02-Mar-2019 Stanislav Malyshev

Fix integer overflows on 32-bits


Revision tags: php-7.3.3RC1, php-7.2.16RC1
# 9249d820 18-Feb-2019 Tyson Andre

Fix typos in code comments [skip ci]


# c4294440 10-Feb-2019 Ben Ramsey

Fixed bug #77564: Memory leak in exif_process_IFD_TAG

The memory leak occurs when more than one UserComment tag is present in
the EXIF data. It's still considered corrupt EXIF data, but

Fixed bug #77564: Memory leak in exif_process_IFD_TAG

The memory leak occurs when more than one UserComment tag is present in
the EXIF data. It's still considered corrupt EXIF data, but this ensures
the memory is freed before trying to set to already allocated memory.

show more ...


Revision tags: php-7.2.15, php-7.3.2, php-7.2.15RC1
# 92ac598a 22-Jan-2019 Peter Kokot

Remove local variables

This patch removes the so called local variables defined per
file basis for certain editors to properly show tab width, and
similar settings. These are mainly

Remove local variables

This patch removes the so called local variables defined per
file basis for certain editors to properly show tab width, and
similar settings. These are mainly used by Vim and Emacs editors
yet with recent changes the once working definitions don't work
anymore in Vim without custom plugins or additional configuration.
Neither are these settings synced across the PHP code base.

A simpler and better approach is EditorConfig and fixing code
using some code style fixing tools in the future instead.

This patch also removes the so called modelines for Vim. Modelines
allow Vim editor specifically to set some editor configuration such as
syntax highlighting, indentation style and tab width to be set in the
first line or the last 5 lines per file basis. Since the php test
files have syntax highlighting already set in most editors properly and
EditorConfig takes care of the indentation settings, this patch removes
these as well for the Vim 6.0 and newer versions.

With the removal of local variables for certain editors such as
Emacs and Vim, the footer is also probably not needed anymore when
creating extensions using ext_skel.php script.

Additionally, Vim modelines for setting php syntax and some editor
settings has been removed from some *.phpt files. All these are
mostly not relevant for phpt files neither work properly in the
middle of the file.

show more ...


# c88e2cce 30-Jan-2019 Nikita Popov

Removed read_exif_data() alias


12345678910>>...19