Project

General

Profile

Actions

Bug #375

closed
VJ AS

radix unittest valgrind error

Bug #375: radix unittest valgrind error

Added by Victor Julien over 14 years ago. Updated over 14 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

AS Updated by Anoop Saldanha over 14 years ago Actions #1

fix attached.

VJ Updated by Victor Julien over 14 years ago Actions #2

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.

AS Updated by Anoop Saldanha over 14 years ago Actions #3

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

VJ Updated by Victor Julien over 14 years ago Actions #4

Right, need more coffee :)

VJ Updated by Victor Julien over 14 years ago Actions #5

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

Applied, thanks Anoop.

Actions

Also available in: PDF Atom