diff --git a/libtiff/tif_fax3.h b/libtiff/tif_fax3.h index cd412d5d..117619c5 100644 --- a/libtiff/tif_fax3.h +++ b/libtiff/tif_fax3.h @@ -390,8 +390,8 @@ done1d: \ if (pa >= thisrun + sp->nruns) { \ TIFFErrorExt(tif->tif_clientdata, module, "Buffer overflow at line %u of %s %u", \ sp->line, isTiled(tif) ? "tile" : "strip", isTiled(tif) ? tif->tif_curtile : tif->tif_curstrip); \ - break; \ - } \ + return (-1); \ + } \ LOOKUP8(7, TIFFFaxMainTable, eof2d); \ switch (TabEnt->State) { \ case S_Pass: \