Note that the failing tests that had to be adapted were bad formed files from FUZZERs. We should not consider invalid markers like 0x00 or 0x52 but only undefined APPn markers.
(cherry picked from commit 4ec1768415ba015041a9bb28ab17c1ccf6a8c63e)