diff options
author | fwarmerdam <fwarmerdam> | 2012-06-20 05:25:33 +0000 |
---|---|---|
committer | fwarmerdam <fwarmerdam> | 2012-06-20 05:25:33 +0000 |
commit | 6ef03f15c5f74f873f83d4b36104da118434b747 (patch) | |
tree | 02080f95d3dde85d94387fd70229c01c5e3421b8 | |
parent | 9c4e225ef8d3e33015ed76427877c45a1f98eb94 (diff) | |
download | libtiff-6ef03f15c5f74f873f83d4b36104da118434b747.tar.gz |
Removed a TODO warning for the non-literal case as I think the "cc"
check is already done at the top of the loop.
-rw-r--r-- | libtiff/tif_packbits.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libtiff/tif_packbits.c b/libtiff/tif_packbits.c index 4aff450f..9e771901 100644 --- a/libtiff/tif_packbits.c +++ b/libtiff/tif_packbits.c @@ -1,4 +1,4 @@ -/* $Id: tif_packbits.c,v 1.21 2012-06-20 05:22:52 fwarmerdam Exp $ */ +/* $Id: tif_packbits.c,v 1.22 2012-06-20 05:25:33 fwarmerdam Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -241,7 +241,7 @@ PackBitsDecode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s) n = (long)occ; } occ -= n; - b = *bp++, cc--; /* TODO: may be reading past input buffer here when input data is corrupt or ends prematurely */ + b = *bp++, cc--; while (n-- > 0) *op++ = (uint8) b; } else { /* copy next n+1 bytes literally */ |