Skip to content

Commit a6f767f

Browse files
committed
Mark the result as not tainted
1 parent 4c5b329 commit a6f767f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pe.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,7 @@ static u_char *pe_page_hash_calc(int *rphlen, FILE_FORMAT_CTX *ctx, int phtype)
918918

919919
/* NumberOfSections indicates the size of the section table,
920920
* which immediately follows the headers, can be up to 65535 under Vista and later */
921+
/* coverity[byte_swapping] */
921922
nsections = GET_UINT16_LE(ctx->options->indata + ctx->pe_ctx->header_size + 6);
922923
if (nsections == 0) {
923924
printf("Corrupted number of sections: 0x%08X\n", nsections);

0 commit comments

Comments
 (0)