summaryrefslogtreecommitdiffstats
path: root/src/file_gz.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-11-16 12:58:45 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2008-11-16 12:58:45 +0100
commitd000e5e9eb89ee0c2e7f9a9db122eb1cf027de88 (patch)
tree0a4a9551c7d347652345419691ebf70e7f24c105 /src/file_gz.c
parent07b1742903d2b483ca4afc1d39d1b644eb755e5a (diff)
Fix a bug in gzip parser discovered by LLVM/Clang Static Analyzer
Diffstat (limited to 'src/file_gz.c')
-rw-r--r--src/file_gz.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_gz.c b/src/file_gz.c
index 0d679a9..8f3eed8 100644
--- a/src/file_gz.c
+++ b/src/file_gz.c
@@ -92,7 +92,7 @@ static int header_check_gz(const unsigned char *buffer, const unsigned int buffe
if((flags&GZ_FEXTRA)!=0)
{
off+=2;
- off=+buffer[10]|(buffer[11]<<8);
+ off+=buffer[10]|(buffer[11]<<8);
}
if((flags&GZ_FNAME)!=0)
{