diff options
author | Takayuki Matsuoka <t-mat@users.noreply.github.com> | 2022-08-12 15:25:13 (GMT) |
---|---|---|
committer | Takayuki Matsuoka <t-mat@users.noreply.github.com> | 2022-08-12 15:25:13 (GMT) |
commit | f892f828838c064dab8d754388506c94e37c3fe1 (patch) | |
tree | 4d4608baea8002ee2e557e24d417782fa3bf61ff /ossfuzz/fuzz_helpers.h | |
parent | af0d7c0cb811e83a89d0ded3ba3bdea1895a2f8a (diff) | |
download | lz4-f892f828838c064dab8d754388506c94e37c3fe1.zip lz4-f892f828838c064dab8d754388506c94e37c3fe1.tar.gz lz4-f892f828838c064dab8d754388506c94e37c3fe1.tar.bz2 |
Suppress false positive warning from MSVC (datagencli.c)
MSVC 2022 reports the follwing false positve warnings:
lz4\tests\datagencli.c(110): warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2).
lz4\tests\datagencli.c(134): warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2).
lz4\tests\datagencli.c(146): warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2).
Although they're absolutely compiler's and static analyzer's bug,
it'd always be nice to use the standard library.
Diffstat (limited to 'ossfuzz/fuzz_helpers.h')
0 files changed, 0 insertions, 0 deletions