diff options
author | Julian Smith <jules@op59.net> | 2020-01-09 14:21:01 +0000 |
---|---|---|
committer | Julian Smith <jules@op59.net> | 2020-01-09 15:32:09 +0000 |
commit | 3acc9babb87048dda29ab766ca41750fc6f58eaf (patch) | |
tree | 1cca4d8c21676d4fab0cf4aaba00afe8e0abd543 /contrib | |
parent | bd6f5232dbaaa372b9fdcdb98134af8096c807be (diff) | |
download | ghostpdl-3acc9babb87048dda29ab766ca41750fc6f58eaf.tar.gz |
Coverity 94905: disabled code that had no affect other than to cause a coverity issue.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/gdevgdi.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/gdevgdi.c b/contrib/gdevgdi.c index 38181a91b..4fd3f1a07 100644 --- a/contrib/gdevgdi.c +++ b/contrib/gdevgdi.c @@ -548,11 +548,14 @@ unsigned int FrameTiff_Comp(unsigned char *lpSrcBuf, unsigned char *lpTgtBuf, un if(ubFirst == ubSecond) /* case of data match */ { + #if 0 + /* This code causes coverity problems, and has no affect. */ usEndCnt = usCount; if (usCount > 16384) { usEndCnt = 16384; } + #endif usEndCnt = usCount - 2; while (usEndCnt--) { @@ -589,11 +592,14 @@ unsigned int FrameTiff_Comp(unsigned char *lpSrcBuf, unsigned char *lpTgtBuf, un ubMisCnt = 0; if (usCount > 2) { + #if 0 + /* This code causes coverity problems, and has no affect. */ usEndCnt = usCount; if (usCount > 16384) { usEndCnt = 16384; } + #endif usEndCnt = usCount - 2; /* usEndCnt = usCount - 2; original*/ /* 19990824 by LSM : for end file while (usEndCnt--)*/ |