Project

General

Profile

Actions

Bug #375

closed

radix unittest valgrind error

Added by Victor Julien almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Normal
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

28625 1 errors in context 8 of 10:
28625 Conditional jump or move depends on uninitialised value(s)
28625 at 0x822902D: SCRadixTestUserdataMacro01 (util-radix-tree.c:4210)
28625 by 0x8214D42: UtRunTests (util-unittest.c:200)
28625 by 0x8056DDB: main (suricata.c:1360)

Files

Actions #1

Updated by Anoop Saldanha almost 13 years ago

fix attached.

Actions #2

Updated by Victor Julien almost 13 years ago

I think this fix only clears the node data structure for the size of the pointer, not for the size of the actual data it points to.

Actions #3

Updated by Anoop Saldanha almost 13 years ago

The fix is right. It is a sizeof(*node) in my fix, not sizeof(node)

Actions #4

Updated by Victor Julien almost 13 years ago

Right, need more coffee :)

Actions #5

Updated by Victor Julien almost 13 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100

Applied, thanks Anoop.

Actions

Also available in: Atom PDF