tif_fax3.h: allow 0 length run in DECODE2D
fixes #46 https://gitlab.com/libtiff/libtiff/issues/46 http://bugzilla.maptools.org/show_bug.cgi?id=2434
This commit is contained in:
parent
bd03e1a27f
commit
02bb01750f
@ -478,12 +478,10 @@ done1d: \
|
|||||||
break; \
|
break; \
|
||||||
case S_VL: \
|
case S_VL: \
|
||||||
CHECK_b1; \
|
CHECK_b1; \
|
||||||
if (b1 <= (int) (a0 + TabEnt->Param)) { \
|
if (b1 < (int) (a0 + TabEnt->Param)) { \
|
||||||
if (b1 < (int) (a0 + TabEnt->Param) || pa != thisrun) { \
|
|
||||||
unexpected("VL", a0); \
|
unexpected("VL", a0); \
|
||||||
goto eol2d; \
|
goto eol2d; \
|
||||||
} \
|
} \
|
||||||
} \
|
|
||||||
SETVALUE(b1 - a0 - TabEnt->Param); \
|
SETVALUE(b1 - a0 - TabEnt->Param); \
|
||||||
b1 -= *--pb; \
|
b1 -= *--pb; \
|
||||||
break; \
|
break; \
|
||||||
|
Loading…
Reference in New Issue
Block a user