...
|
...
|
@@ -2202,6 +2202,7 @@ cl_error_t asn1_check_mscat(struct cl_engine *engine, fmap_t *map, size_t offset
|
2202
|
2202
|
crtmgr certs;
|
2203
|
2203
|
int ret;
|
2204
|
2204
|
void *ctx;
|
|
2205
|
+ unsigned int i;
|
2205
|
2206
|
|
2206
|
2207
|
// TODO Move these into cli_checkfp_pe
|
2207
|
2208
|
if (!(engine->dconf->pe & PE_CONF_CERTS))
|
...
|
...
|
@@ -2253,7 +2254,7 @@ cl_error_t asn1_check_mscat(struct cl_engine *engine, fmap_t *map, size_t offset
|
2253
|
2253
|
|
2254
|
2254
|
// Now that we know the hash algorithm, compute the authenticode hash
|
2255
|
2255
|
// across the required regions of memory.
|
2256
|
|
- for(unsigned int i = 0; i < nregions; i++) {
|
|
2256
|
+ for(i = 0; i < nregions; i++) {
|
2257
|
2257
|
const uint8_t *hptr;
|
2258
|
2258
|
if (0 == regions[i].size) {
|
2259
|
2259
|
continue;
|
...
|
...
|
@@ -2269,7 +2270,7 @@ cl_error_t asn1_check_mscat(struct cl_engine *engine, fmap_t *map, size_t offset
|
2269
|
2269
|
|
2270
|
2270
|
if(cli_debug_flag) {
|
2271
|
2271
|
char hashtxt[MAX_HASH_SIZE*2+1];
|
2272
|
|
- for(unsigned int i=0; i<hashsize; i++)
|
|
2272
|
+ for(i=0; i<hashsize; i++)
|
2273
|
2273
|
sprintf(&hashtxt[i*2], "%02x", hash[i]);
|
2274
|
2274
|
cli_dbgmsg("Authenticode: %s\n", hashtxt);
|
2275
|
2275
|
}
|