Created
January 18, 2024 10:53
-
-
Save ivangrozni/06f65461da221f17314f56bf1541256d to your computer and use it in GitHub Desktop.
fileeye-pel-illegal-offset-exception.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 879ca9086bfb735252d0c5e1681b9cf0c2c09341 Mon Sep 17 00:00:00 2001 | |
From: Ciprian Stavovei <ciprian@drunomics.com> | |
Date: Tue, 22 Mar 2022 15:56:50 +0200 | |
Subject: [PATCH] #183: Fix for PelIllegalFormatException: Unknown format: 0x0. | |
--- | |
src/PelFormat.php | 13 +++++++++++-- | |
1 file changed, 11 insertions(+), 2 deletions(-) | |
diff --git a/src/PelFormat.php b/src/PelFormat.php | |
index 9ec3f9a8..78a98d08 100644 | |
--- a/src/PelFormat.php | |
+++ b/src/PelFormat.php | |
@@ -46,6 +46,13 @@ | |
class PelFormat | |
{ | |
+ /** | |
+ * ERROR Handling | |
+ * FIX Unknown format: 0x0 | |
+ * @author Agamemnon Katradis https://github.com/agaktr/ | |
+ */ | |
+ const ERROR = 0; | |
+ | |
/** | |
* Unsigned byte. | |
* | |
@@ -175,7 +182,8 @@ class PelFormat | |
self::SRATIONAL => 'SRational', | |
self::FLOAT => 'Float', | |
self::DOUBLE => 'Double', | |
- self::UNDEFINED => 'Undefined' | |
+ self::UNDEFINED => 'Undefined', | |
+ self::ERROR => 'ERROR' //FIX Unknown format: 0x0 | |
]; | |
protected static $formatLength = [ | |
@@ -190,7 +198,8 @@ class PelFormat | |
self::SRATIONAL => 8, | |
self::FLOAT => 4, | |
self::DOUBLE => 8, | |
- self::UNDEFINED => 1 | |
+ self::UNDEFINED => 1, | |
+ self::ERROR => 0 //FIX Unknown format: 0x0 | |
]; | |
/** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment