Actions
Bug #439
closedcppcheck warnings
Affected Versions:
Effort:
Difficulty:
Label:
Description
Running cppcheck git against the git master's "src" dir using "cppcheck -I .. -j 8 -f . 2> log.txt"
[counters.c:664]: (error) Array '_sc_log_msg[2048]' index 2048 out of bounds [counters.c:665]: (error) Array '_sc_log_msg[2048]' index 2048 out of bounds [detect-engine-mpm.c] -> [detect-engine-mpm.c:88]: (error) Unexpected action '%' in MathLib::calculate(). Please report this to Cppcheck developers. [detect-engine-proto.c] -> [detect-engine-proto.c:116]: (error) Unexpected action '%' in MathLib::calculate(). Please report this to Cppcheck developers. [detect-fast-pattern.c:11212]: (error) Possible null pointer dereference: sm - otherwise it is redundant to check if sm is null at line 11213 [detect-fast-pattern.c:11248]: (error) Possible null pointer dereference: sm - otherwise it is redundant to check if sm is null at line 11249 [detect-fast-pattern.c:12395]: (error) Possible null pointer dereference: sm - otherwise it is redundant to check if sm is null at line 12396 [detect-fast-pattern.c:12431]: (error) Possible null pointer dereference: sm - otherwise it is redundant to check if sm is null at line 12432 [detect-fast-pattern.c:13579]: (error) Possible null pointer dereference: sm - otherwise it is redundant to check if sm is null at line 13580 [detect-fast-pattern.c:13615]: (error) Possible null pointer dereference: sm - otherwise it is redundant to check if sm is null at line 13616 [log-pcap.c:566]: (error) Array '_sc_log_msg[2048]' index 2048 out of bounds [source-pcap-file.c:218]: (error) Array '_sc_log_msg[2048]' index 2048 out of bounds [source-pcap.c:497]: (error) Array '_sc_log_msg[2048]' index 2048 out of bounds [suricata.c:1606]: (error) Array '_sc_log_msg[2048]' index 2048 out of bounds [util-classification-config.c:271]: (error) Array '_sc_log_msg[2048]' index 2048 out of bounds [util-classification-config.c:272]: (error) Array '_sc_log_msg[2048]' index 2048 out of bounds [util-classification-config.c:273]: (error) Array '_sc_log_msg[2048]' index 2048 out of bounds [util-rule-vars.c:106]: (error) Possible null pointer dereference: conf_var_full_name_value [util-runmodes.c:134]: (error) Array '_sc_log_msg[2048]' index 2048 out of bounds [util-runmodes.c:445]: (error) Array '_sc_log_msg[2048]' index 2048 out of bounds [util-runmodes.c:508]: (error) Array '_sc_log_msg[2048]' index 2048 out of bounds
Actions