tif_fax3.h: check for buffer overflow in EXPAND2D before "calling" CLEANUP_RUNS()

fixes #179

this fixes the regression introduced in 02bb0175 / 72c4acef
( merge request !110 )

It may be a better fix to do the overflow check in SETVALUE() but the
macro do { } while(0) construct makes it difficult to quit the loop
properly.
This commit is contained in:
Thomas Bernard 2020-03-05 10:27:04 +01:00
parent 25b274126d
commit b351db8be1
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C

View File

@ -514,7 +514,9 @@ done1d: \
goto eol2d; \
eof2d: \
prematureEOF(a0); \
CLEANUP_RUNS(); \
if (pa < thisrun + sp->nruns) { \
CLEANUP_RUNS(); \
} \
goto eoflab; \
} \
} \