Project

General

Profile

Actions

Bug #439

closed

cppcheck warnings

Added by Victor Julien about 12 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Normal
Target version:
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 #1

Updated by Victor Julien about 12 years ago

  • Description updated (diff)
Actions #2

Updated by Anoop Saldanha about 12 years ago

  • Assignee set to Anoop Saldanha
Actions #3

Updated by Anoop Saldanha about 12 years ago

  • Status changed from New to Resolved
Actions #4

Updated by Victor Julien about 12 years ago

  • Status changed from Resolved to Closed
  • Target version set to 1.3beta1
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF