git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0953475
)
added bit checking in swf_ShapeSetCurve().
author
kramm
<kramm>
Thu, 21 Oct 2004 17:42:00 +0000
(17:42 +0000)
committer
kramm
<kramm>
Thu, 21 Oct 2004 17:42:00 +0000
(17:42 +0000)
lib/modules/swfshape.c
patch
|
blob
|
history
diff --git
a/lib/modules/swfshape.c
b/lib/modules/swfshape.c
index
30c57d8
..
850bead
100644
(file)
--- a/
lib/modules/swfshape.c
+++ b/
lib/modules/swfshape.c
@@
-470,6
+470,11
@@
int swf_ShapeSetCurve(TAG * t,SHAPE * s,S32 x,S32 y,S32 ax,S32 ay)
b = swf_CountBits(x,b);
b = swf_CountBits(y,b);
+ if(b-2 >= 16) {
+ fprintf(stderr, "Bit overflow in swf_ShapeSetCurve- %d (%d,%d,%d,%d)\n", b, ax,ay,x,y);
+ b = 17;
+ }
+
swf_SetBits(t,b-2,4);
swf_SetBits(t,x,b);
swf_SetBits(t,y,b);