We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f8fd42 commit 5abb8c9Copy full SHA for 5abb8c9
src/main/java/the/bytecode/club/bytecodeviewer/util/FileHeaderUtils.java
@@ -30,6 +30,8 @@ public class FileHeaderUtils
30
31
public static boolean doesFileHeaderMatch(byte[] bytes, int fileHeader)
32
{
33
+ if (bytes.length < 4) return false;
34
+
35
int bytesHeader = ((bytes[0] & 0xFF) << 24)
36
| ((bytes[1] & 0xFF) << 16)
37
| ((bytes[2] & 0xFF) << 8)
0 commit comments