History log of /PHP-8.1/ext/fileinfo/libmagic.patch (Results 1 – 25 of 89)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# ca6d511f 30-Jun-2022 Christoph M. Becker

Fix #81723: Memory corruption in finfo_buffer()

We need to use the same memory allocator throughout.


# d08451b2 29-May-2022 George Peter Banyard

Replace php_stdint.h header with standard headers (#8613)

Revision tags: php-8.1.7RC1
# 45e623da 25-Apr-2022 David Carlier

libmagic: use php_memnstr instead of memmem

Closes GH-8391.

Revision tags: php-8.1.4RC1, php-8.1.3, php-8.1.2RC1, php-8.1.0, php-7.3.33, php-7.3.32, php-7.3.31, php-7.3.30, php-7.3.29, php-7.3.28
# 7251f390 06-Apr-2021 Anatol Belski

fileinfo: Update the patch

Signed-off-by: Anatol Belski <ab@php.net>

# 4af6679d 05-Apr-2021 Anatol Belski

fileinfo: Update libmagic.patch

Signed-off-by: Anatol Belski <ab@php.net>

# 3b9173dc 01-Apr-2021 Anatol Belski

fileinfo: Port libmagic 5.40

Signed-off-by: Anatol Belski <ab@php.net>

Revision tags: php-7.3.27, php-7.3.26, php-7.3.26RC1
# e589609b 24-Nov-2020 Christoph M. Becker

Merge branch 'PHP-7.4' into PHP-8.0

* PHP-7.4:
Fix #77961: finfo_open crafted magic parsing SIGABRT


Revision tags: php-7.3.25
# 39f95f56 23-Nov-2020 Christoph M. Becker

Fix #77961: finfo_open crafted magic parsing SIGABRT

libmagic may abort the running process, which is not desirable for PHP;
we raise a fatal error instead.

Closes GH-6437.

Revision tags: php-7.3.25RC1, php-7.3.24, php-7.3.24RC1, php-7.3.23, php-7.3.23RC1
# e64c386b 02-Sep-2020 Anatol Belski

libmagic: Update patch

[ci skip]

Signed-off-by: Anatol Belski <ab@php.net>

Revision tags: php-7.3.22
# 486866c1 29-Aug-2020 Anatol Belski

libmagic: Update patch [ci skip]

Signed-off-by: Anatol Belski <ab@php.net>

# 1b2ec73c 26-Aug-2020 George Peter Banyard

Drop various unused macros/APIs

Also convert_libmagic_pattern() to return a zend_string*

Closes GH-6029

Revision tags: php-7.3.22RC1
# f32653ac 13-Aug-2020 David Carlier

fileinfo build fix proposal for haiku.

Haiku already defines a unichar type and different than the fileinfo's anyway.

Closed GH-5983

Revision tags: php-7.3.21, php-7.3.21RC1
# 3f286fa8 08-Jul-2020 George Peter Banyard

Promote Notice to Warning in libmagic

The current behaviour makes little to no sense, having a notice which starts with 'Warning:' should just be a warning

Closes GH-5824

Revision tags: php-7.3.20, php-7.3.20RC1, php-7.3.19, php-7.4.7RC1, php-7.3.19RC1, php-7.3.18RC1
# f91f7260 22-Apr-2020 George Peter Banyard

Drop unnecessary stdint and inttypes header checks

These are always available as of C99.

Closes GH-5323

Co-authored-by: "Christoph M. Becker" <cmbecker69@gmx.de>

Revision tags: php-7.2.30, php-7.3.17, php-7.3.17RC1
# 457380ca 29-Mar-2020 George Peter Banyard

Drop wchar header check as always defined since C95

Revision tags: php-7.3.18, php-7.3.16, php-7.3.16RC1
# 7702b693 02-Mar-2020 Christoph M. Becker

Fix #79283: Segfault in libmagic patch contains a buffer overflow

To solve this, we properly calculate the required string length upfront
instead of allocating an oversized string (`len

Fix #79283: Segfault in libmagic patch contains a buffer overflow

To solve this, we properly calculate the required string length upfront
instead of allocating an oversized string (`len * 4 + 4`).

show more ...

# aa88f33f 02-Mar-2020 Christoph M. Becker

Fix #79283: Segfault in libmagic patch contains a buffer overflow

To solve this, we properly calculate the required string length upfront
instead of allocating an oversized string (`len

Fix #79283: Segfault in libmagic patch contains a buffer overflow

To solve this, we properly calculate the required string length upfront
instead of allocating an oversized string (`len * 4 + 4`).

show more ...

# 7fa6e2a2 02-Mar-2020 Christoph M. Becker

Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
Update libmagic.patch


# f15ab32a 26-Feb-2020 Christoph M. Becker

Update libmagic.patch

Some commits missed to update the patch file, so we're catching up on
this.

To generally make this easier, we back-port generate_patch.sh from
PHP-7.4,

Update libmagic.patch

Some commits missed to update the patch file, so we're catching up on
this.

To generally make this easier, we back-port generate_patch.sh from
PHP-7.4, where we now also generate magic.h from magic.h.in.

show more ...

Revision tags: php-7.3.15RC1, php-7.3.15, php-7.3.14, php-7.3.14RC1, php-7.3.13, php-7.3.13RC1, php-7.2.26RC1, php-7.4.0, php-7.2.25, php-7.3.12, php-7.4.0RC6, php-7.3.12RC1, php-7.2.25RC1, php-7.4.0RC5, php-7.1.33, php-7.2.24, php-7.3.11, php-7.4.0RC4, php-7.3.11RC1, php-7.2.24RC1, php-7.4.0RC3, php-7.2.23, php-7.3.10, php-7.4.0RC2, php-7.2.23RC1, php-7.3.10RC1, php-7.4.0RC1, php-7.1.32, php-7.2.22, php-7.3.9, php-7.4.0beta4, php-7.2.22RC1, php-7.3.9RC1, php-7.4.0beta2, php-7.1.31, php-7.2.21, php-7.3.8, php-7.4.0beta1, php-7.2.21RC1, php-7.3.8RC1, php-7.4.0alpha3
# f002761e 08-Jul-2019 Peter Kokot

Update libmagic patch

This simplifies the libmagic patch:
- in upstream the HAVE_STRERROR check has been removed
- in upstream library the HAVE_SIGNAL_H has been removed
- indent

Update libmagic patch

This simplifies the libmagic patch:
- in upstream the HAVE_STRERROR check has been removed
- in upstream library the HAVE_SIGNAL_H has been removed
- indentations syncs with the upstream library
- some irrelevant changes removed from the patch (log comment), upstream
has this correctly logged already so no need to patch the comment.

Closes GH-4298

show more ...

Revision tags: php-7.3.7, php-7.2.20
# dacf9ecc 29-Jun-2019 Anatol Belski

Update libmagic.patch [ci skip]

Revision tags: php-7.4.0alpha2, php-7.3.7RC3, php-7.3.7RC2, php-7.2.20RC2, php-7.4.0alpha1, php-7.3.7RC1, php-7.2.20RC1
# 2ba9177d 30-May-2019 Anatol Belski

[ci skip] Update libmagic.patch

Revision tags: php-7.2.19, php-7.3.6, php-7.1.30, php-7.2.19RC1, php-7.3.6RC1, php-7.1.29, php-7.2.18, php-7.3.5, php-7.2.18RC1, php-7.3.5RC1
# 908660c1 15-Apr-2019 Nikita Popov

Avoid maybe uninit warning in libmagic

GCC 5 false positive, gone in newer versions.

# ba40f505 12-Apr-2019 Nikita Popov

Fix unused variable warnings in libmagic

These variables are only used in assertions.

# b65cb7e2 11-Apr-2019 Nikita Popov

Fix libmagic warnings

1234