We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abbbfab commit c699087Copy full SHA for c699087
pe.c
@@ -206,6 +206,12 @@ static int pe_check_file(FILE_FORMAT_CTX *ctx, int detached)
206
*/
207
while (sum < ctx->pe_ctx->siglen) {
208
uint32_t len = GET_UINT32_LE(ctx->options->indata + ctx->pe_ctx->sigpos + sum);
209
+ if (ctx->pe_ctx->siglen - len > 8) {
210
+ printf("Corrupted attribute certificate table\n");
211
+ printf("Attribute certificate table size : %08X\n", ctx->pe_ctx->siglen);
212
+ printf("Attribute certificate entry length: %08X\n\n", len);
213
+ return 0; /* FAILED */
214
+ }
215
/* quadword align data */
216
len += len % 8 ? 8 - len % 8 : 0;
217
sum += len;
0 commit comments