Skip to content

Commit 7e5a0fa

Browse files
committed
Coverity: Untrusted divisor
1. Add a Coverity except tag. Fixes CID: 572837
1 parent eede928 commit 7e5a0fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/misc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ STATIC INLINE word32 min(word32 a, word32 b)
7474
/* convert opaque to 32 bit integer */
7575
STATIC INLINE void ato32(const byte* c, word32* u32)
7676
{
77+
/* coverity[tainted_data] */
7778
*u32 = (c[0] << 24) | (c[1] << 16) | (c[2] << 8) | c[3];
7879
}
7980

0 commit comments

Comments
 (0)