Project

General

Profile

Actions

Bug #195

closed
VJ PR

valgrind error in asn1

Bug #195: valgrind error in asn1

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

PR Updated by Pablo Rincon almost 16 years ago Actions #1

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

VJ Updated by Victor Julien almost 16 years ago Actions #2

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

Applied, thanks Pablo.

Actions

Also available in: PDF Atom