mirror of https://github.com/OISF/suricata
mpm/ac-ks: address int handling issues
cppcheck: src/util-mpm-ac-ks.c:1452:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] printf("Total states in the state table: %d\n", ctx->state_count); ^ src/util-mpm-ac-ks.c:606:34: error: Signed integer overflow for expression '1<<31'. [integerOverflow] encoded_next_state |= (1 << 31); ^ Bug: #5291.pull/7321/head
parent
9c672a805f
commit
a8d3cd6eb4
Loading…
Reference in New Issue