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:
Thomas Bernard 2020-02-29 23:30:07 +01:00
parent bd03e1a27f
commit 02bb01750f
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C

View File

@ -478,11 +478,9 @@ 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; \