Project

General

Profile

Actions

Bug #195

closed

valgrind error in asn1

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

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

Description

When running the unittests with gcc's O3 optimization level I see the following errors:

15592 1 errors in context 1 of 2:
15592 Conditional jump or move depends on uninitialised value(s)
15592 at 0x8182F89: DetectAsn1Test06 (detect-asn1.c:109)
15592 by 0x81A6752: UtRunTests (util-unittest.c:199)
15592 by 0x804DDAC: main (suricata.c:896)
15592
15592
15592 1 errors in context 2 of 2:
15592 Conditional jump or move depends on uninitialised value(s)
15592 at 0x81D632A: SCAsn1Decode (util-decode-asn1.c:284)
15592 by 0x8182F34: DetectAsn1Test06 (detect-asn1.c:974)
15592 by 0x81A6752: UtRunTests (util-unittest.c:199)
15592 by 0x804DDAC: main (suricata.c:896)

It does not happen at O0.


Files

Actions #1

Updated by Pablo Rincon almost 14 years ago

The unittest was processing a wrong data length, 1 byte more than the correct. Fixed with the attached patch.

Actions #2

Updated by Victor Julien almost 14 years ago

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

Applied, thanks Pablo.

Actions

Also available in: Atom PDF