mirror of
https://github.com/mtrojnar/osslsigncode.git
synced 2025-07-03 11:42:47 -05:00
squash gcc debugger warnings
remove nsections>UINT16_MAX check
This commit is contained in:

committed by
Michał Trojnara

parent
5d2bf2c80f
commit
2d21a2121c
2
pe.c
2
pe.c
@ -919,7 +919,7 @@ static u_char *pe_page_hash_calc(int *rphlen, FILE_FORMAT_CTX *ctx, int phtype)
|
||||
/* NumberOfSections indicates the size of the section table,
|
||||
* which immediately follows the headers, can be up to 65535 under Vista and later */
|
||||
nsections = GET_UINT16_LE(ctx->options->indata + ctx->pe_ctx->header_size + 6);
|
||||
if (nsections == 0 || nsections > UINT16_MAX) {
|
||||
if (nsections == 0) {
|
||||
printf("Corrupted number of sections: 0x%08X\n", nsections);
|
||||
return NULL; /* FAILED */
|
||||
}
|
||||
|
Reference in New Issue
Block a user