diff options
author | Sam Leffler <sam@engr.sgi.com> | 1997-02-21 01:20:19 +0000 |
---|---|---|
committer | Roger Leigh <rleigh@codelibre.net> | 2022-06-22 19:39:48 +0100 |
commit | 7b7dc6a9696b7d7fb1c2fcdd355ee0e3a9d22c2d (patch) | |
tree | 2a8da34f4359d1a3a969b4f900e3e8c3724ebe86 /libtiff/tif_fax3.h | |
parent | 773e971189d30b0603751845b31c66b62fc913a7 (diff) | |
download | libtiff-git-7b7dc6a9696b7d7fb1c2fcdd355ee0e3a9d22c2d.tar.gz |
v3.4beta036 releasev3.4beta036
Diffstat (limited to 'libtiff/tif_fax3.h')
-rw-r--r-- | libtiff/tif_fax3.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/libtiff/tif_fax3.h b/libtiff/tif_fax3.h index 33d41760..88f2cf2f 100644 --- a/libtiff/tif_fax3.h +++ b/libtiff/tif_fax3.h @@ -1,4 +1,4 @@ -/* $Header: /usr/people/sam/tiff/libtiff/RCS/tif_fax3.h,v 1.31 1996/06/04 19:04:41 sam Exp $ */ +/* $Id: tif_fax3.h,v 1.33 1996/08/22 18:17:39 sam Exp $ */ /* * Copyright (c) 1990-1996 Sam Leffler @@ -507,11 +507,13 @@ done1d: \ } \ } \ if (RunLength) { \ - /* expect a final V0 */ \ - NeedBits8(1,eof2d); \ - if (!GetBits(1)) \ - goto badMain2d; \ - ClrBits(1); \ + if (RunLength + a0 < lastx) { \ + /* expect a final V0 */ \ + NeedBits8(1,eof2d); \ + if (!GetBits(1)) \ + goto badMain2d; \ + ClrBits(1); \ + } \ SETVAL(0); \ } \ eol2d: \ |