diff options
author | Julian Smith <jules@op59.net> | 2020-01-10 11:56:54 +0000 |
---|---|---|
committer | Julian Smith <jules@op59.net> | 2020-01-10 11:56:54 +0000 |
commit | 419f528cf8625a7e2989068324e962c498c255ef (patch) | |
tree | bdd383822f6a5c8e1f241cc3e4f9ff82b495741e /contrib | |
parent | e3c394504318a9a6774d65c386842d3f568126ce (diff) | |
download | ghostpdl-419f528cf8625a7e2989068324e962c498c255ef.tar.gz |
Coverity 94984: 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 4fd3f1a07..cdd148baf 100644 --- a/contrib/gdevgdi.c +++ b/contrib/gdevgdi.c @@ -692,11 +692,14 @@ unsigned int PreTiffComp(unsigned char *lpSrcBuf, unsigned int nSrcBytes) 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--) { @@ -728,12 +731,15 @@ unsigned int PreTiffComp(unsigned char *lpSrcBuf, unsigned int nSrcBytes) ubMisCnt = 0; if (usCount > 2) { + #if 0 + /* This code causes coverity problems, and has no affect. */ usEndCnt = usCount; if (usCount > 16384) { usEndCnt = 16384; } /* usEndCnt = usCount - 2;*/ + #endif usEndCnt = usCount - 2; /* 19990824 by LSM : for Last file while (usEndCnt--)*/ while (usEndCnt--) |