]> granicus.if.org Git - php/commit
Fix bug #75785 by attempt switching endianness on Maker's Note
authorNawarian <nickolas@phpsp.org.br>
Sun, 12 Jul 2020 19:53:52 +0000 (21:53 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 11 Aug 2020 14:26:34 +0000 (16:26 +0200)
commit2fa4ca95db262267aa6bd46c5e2f74aa42542fc3
treedfb0f31eee8ef2184ee8449866ec28ec41160a73
parentdc108feab8d88f62d7fcba3d2c9a058432463118
Fix bug #75785 by attempt switching endianness on Maker's Note

Different manufacturer models may come with a
different endianness (motorola/intel) format. In
order to avoid a big refactor and a gigantic lookup
table, this commit simply attempts to switch the
endianness and proceed when values are acceptable.

Closes GH-5849.
NEWS
ext/exif/exif.c
ext/exif/tests/bug75785/P1000506.JPG [new file with mode: 0644]
ext/exif/tests/bug75785/bug75785.phpt [new file with mode: 0644]