aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoryzrh <yzrh@noema.org>2022-12-31 18:52:06 +0000
committeryzrh <yzrh@noema.org>2022-12-31 18:52:06 +0000
commit3ac51d66b9e7b7169c99676f39e7dab457f6b979 (patch)
treeeabc65ee4444e146b56674b0ef34737e08ed56de /src
parent0bbf8e65dd712d91ffc63493e4c2d16599d1685e (diff)
downloadmelon-3ac51d66b9e7b7169c99676f39e7dab457f6b979.tar.gz
melon-3ac51d66b9e7b7169c99676f39e7dab457f6b979.tar.zst
Fix JBIG table length.
Signed-off-by: yzrh <yzrh@noema.org>
Diffstat (limited to 'src')
-rw-r--r--src/jbig.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jbig.c b/src/jbig.c
index b466411..37afb50 100644
--- a/src/jbig.c
+++ b/src/jbig.c
@@ -9,7 +9,7 @@
#include <stdlib.h>
#include <string.h>
-static const uint16_t _LSZ[256] = {
+static const uint16_t _LSZ[0x71] = {
0x5a1d,
0x2586, 0x1114, 0x080b, 0x03d8, 0x01da, 0x00e5, 0x006f, 0x0036,
0x001a, 0x000d, 0x0006, 0x0003, 0x0001, 0x5a7f, 0x3f25, 0x2cf2,
@@ -28,7 +28,7 @@ static const uint16_t _LSZ[256] = {
0x5627, 0x50e7, 0x4b85, 0x5597, 0x504f, 0x5a10, 0x5522, 0x59eb
};
-static const uint8_t _NLPS[256] = {
+static const uint8_t _NLPS[0x71] = {
1,
14, 16, 18, 20, 23, 25, 28, 30,
33, 35, 9, 10, 12, 15, 36, 38,
@@ -47,7 +47,7 @@ static const uint8_t _NLPS[256] = {
105, 108, 109, 110, 111, 110, 112, 112
};
-static const uint8_t _NMPS[256] = {
+static const uint8_t _NMPS[0x71] = {
1,
2, 3, 4, 5, 6, 7, 8, 9,
10, 11, 12, 13, 13, 15, 16, 17,
@@ -66,7 +66,7 @@ static const uint8_t _NMPS[256] = {
106, 107, 103, 109, 107, 111, 109, 111
};
-static const bool _SWTCH[256] = {
+static const bool _SWTCH[0x71] = {
1,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 1, 0, 0,