mirror of
https://github.com/mtrojnar/osslsigncode.git
synced 2025-04-04 17:00:11 -05:00
False positive CID 1519394: Operands don't affect result
This commit is contained in:
parent
f67ca8aac5
commit
1155a9c338
@ -4154,6 +4154,7 @@ static int cab_remove_file(char *indata, FILE_HEADER *header, uint32_t filesize,
|
|||||||
BIO_write(outdata, indata+20, 10);
|
BIO_write(outdata, indata+20, 10);
|
||||||
/* u2 flags: 30-31 */
|
/* u2 flags: 30-31 */
|
||||||
flags = GET_UINT16_LE(indata+30);
|
flags = GET_UINT16_LE(indata+30);
|
||||||
|
/* coverity[result_independent_of_operands] only least significant byte is affected */
|
||||||
PUT_UINT16_LE(flags & (FLAG_PREV_CABINET | FLAG_NEXT_CABINET), buf);
|
PUT_UINT16_LE(flags & (FLAG_PREV_CABINET | FLAG_NEXT_CABINET), buf);
|
||||||
BIO_write(outdata, buf, 2);
|
BIO_write(outdata, buf, 2);
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user