OSDN Git Service
(root)
/
lha
/
lha.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8addb98
)
should check the tree1 value
author
Koji Arai
<jca02266@gmail.com>
Sat, 30 Aug 2008 14:29:22 +0000
(23:29 +0900)
committer
Koji Arai
<jca02266@gmail.com>
Sat, 30 Aug 2008 14:29:22 +0000
(23:29 +0900)
src/pm2.c
patch
|
blob
|
history
diff --git
a/src/pm2.c
b/src/pm2.c
index
070ce63
..
a90e203
100644
(file)
--- a/
src/pm2.c
+++ b/
src/pm2.c
@@
-77,6
+77,10
@@
decode_c_pm2(void)
}
}
gettree1 = tree_get(&tree1); /* value preserved for decode_p */
+ if (gettree1 >= 29) {
+ error("Bad table");
+ exit(1);
+ }
/* direct value (ret <= UCHAR_MAX) */
if (gettree1 < 8)