git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@815 77e5149b-7576-45b1-b177-96237e5ba77b
aCaB authored on 2004/08/31 20:53:10... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Tue Aug 31 13:43:11 CEST 2004 (acab) |
|
2 |
+------------------------------------ |
|
3 |
+ * libclamav/petite.c: Fixed section compacting for v2.1 |
|
4 |
+ |
|
1 | 5 |
Tue Aug 31 00:09:42 CEST 2004 (tk) |
2 | 6 |
---------------------------------- |
3 | 7 |
* sigtool: --md5 now can generate MD5 sigs from file list (requested by |
... | ... |
@@ -217,8 +217,8 @@ int petite_inflate2x_1to9(char *buf, uint32_t minrva, int bufsz, struct pe_image |
217 | 217 |
} |
218 | 218 |
|
219 | 219 |
/* Let's compact data */ |
220 |
- for (t = 1; t < j ; t++) { |
|
221 |
- usects[t].raw = usects[t-1].raw + usects[t-1].rsz; |
|
220 |
+ for (t = 0; t < j ; t++) { |
|
221 |
+ usects[t].raw = (usects[t-1].raw + usects[t-1].rsz)*(t>0); |
|
222 | 222 |
if (usects[t].rsz != 0) |
223 | 223 |
memmove(buf + usects[t].raw, adjbuf + usects[t].rva, usects[t].rsz); |
224 | 224 |
} |