Bug 589692 - Seg Fault when parsing the value of external variables
Seg Fault when parsing the value of external variables
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: openscap (Show other bugs)
14
All Linux
low Severity medium
: ---
: ---
Assigned To: Peter Vrabec
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-06 13:35 EDT by Ed Sealing
Modified: 2010-10-05 08:38 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-10-05 08:38:58 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Compressed example of externally referenced variable (1.92 KB, application/x-zip-compressed)
2010-05-06 13:35 EDT, Ed Sealing
no flags Details
patch to varModel.c (2.45 KB, patch)
2010-05-06 13:37 EDT, Ed Sealing
no flags Details | Diff

  None (edit)
Description Ed Sealing 2010-05-06 13:35:45 EDT
Created attachment 412125 [details]
Compressed example of externally referenced variable

Description of problem:
When parsing an external variable file using oval_variable_model_import(), 

Version-Release number of selected component (if applicable):
0.5.9

How reproducible:
Every time

Steps to Reproduce:

   //Import Definition Model
struct oscap_import_source *def_src = oscap_import_source_new_file("test_benchmark/2-16supported-release.xml", NULL);
struct oval_definition_model *def_model = oval_definition_model_new();
oval_definition_model_import(def_model, def_src, NULL);

   //Import Variable Model
struct oscap_import_source *var_src = oscap_import_source_new_file("test_benchmark/STIG_external_variables.xml", NULL);
struct oval_variable_model *var_model = oval_variable_model_new();
oval_variable_model_import(var_model, var_src, NULL);

  
Actual results:
Segmentation Fault

Expected results:
importing correctly

Additional info: See attached sample file.
Comment 1 Ed Sealing 2010-05-06 13:37:23 EDT
Created attachment 412126 [details]
patch to varModel.c

Patch to call xmlTextReaderRead(reader) prior to getting the value
Comment 2 Bug Zapper 2010-07-30 07:33:52 EDT
This bug appears to have been reported against 'rawhide' during the Fedora 14 development cycle.
Changing version to '14'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Note You need to log in before you can comment on or make changes to this bug.