allow zero length runs at start of fax3 lines
This commit is contained in:
parent
8e9fb97983
commit
4dda1458c6
@ -1,3 +1,8 @@
|
||||
2011-03-10 Frank Warmerdam <warmerdam@pobox.com>
|
||||
|
||||
* libtiff/tif_fax3.h: Fix to last change allowing zero length
|
||||
runs at the start of a scanline - needed for legal cases.
|
||||
|
||||
2011-03-02 Frank Warmerdam <warmerdam@pobox.com>
|
||||
|
||||
* libtiff/tif_fax3.h: Protect against a fax VL(n) codeword commanding
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $Id: tif_fax3.h,v 1.8 2011-03-03 01:38:25 fwarmerdam Exp $ */
|
||||
/* $Id: tif_fax3.h,v 1.9 2011-03-10 20:23:07 fwarmerdam Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1990-1997 Sam Leffler
|
||||
@ -479,8 +479,10 @@ done1d: \
|
||||
case S_VL: \
|
||||
CHECK_b1; \
|
||||
if (b1 <= (int) (a0 + TabEnt->Param)) { \
|
||||
unexpected("VL", a0); \
|
||||
goto eol2d; \
|
||||
if (b1 < (int) (a0 + TabEnt->Param) || pa != thisrun) { \
|
||||
unexpected("VL", a0); \
|
||||
goto eol2d; \
|
||||
} \
|
||||
} \
|
||||
SETVALUE(b1 - a0 - TabEnt->Param); \
|
||||
b1 -= *--pb; \
|
||||
|
Loading…
Reference in New Issue
Block a user