git-svn: trunk@1618
Tomasz Kojm authored on 2005/06/18 09:27:20... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Sat Jun 18 02:22:26 CEST 2005 (tk) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav/mspack/cabd.c: fix possible infinite loop |
|
4 |
+ |
|
1 | 5 |
Sat Jun 18 01:55:58 CEST 2005 (tk) |
2 | 6 |
---------------------------------- |
3 | 7 |
* sigtool/vba.c: revert incorrect logg() patch (thanks to Trog) |
... | ... |
@@ -1264,7 +1264,7 @@ static int cabd_sys_read(struct mspack_file *file, void *buffer, int bytes) { |
1264 | 1264 |
/* check if we're out of input blocks, advance block counter */ |
1265 | 1265 |
if (this->d->block++ >= this->d->folder->base.num_blocks) { |
1266 | 1266 |
this->error = MSPACK_ERR_DATAFORMAT; |
1267 |
- break; |
|
1267 |
+ return -1; |
|
1268 | 1268 |
} |
1269 | 1269 |
|
1270 | 1270 |
/* read a block */ |