-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify OvalElement class __lt__ method and create test #1079
Reference: #1079 Signed-off-by: John M. Horan <johnmhoran@gmail.com>
- Loading branch information
1 parent
d880e51
commit 15fddb6
Showing
4 changed files
with
134 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
90 changes: 90 additions & 0 deletions
90
vulnerabilities/tests/test_data/suse_oval/org.opensuse.CVE-2008-5679-modified-versions.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<oval_definitions xsi:schemaLocation="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux linux-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#unix unix-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5 oval-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-common-5 oval-common-schema.xsd" | ||
xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" | ||
xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5"> | ||
<generator> | ||
<oval:product_name>Marcus OVAL Generator</oval:product_name> | ||
<oval:schema_version>5.5</oval:schema_version> | ||
<oval:timestamp>2009-01-14T09:08:29.480-05:00</oval:timestamp> | ||
</generator> | ||
<definitions> | ||
|
||
<definition id="oval:org.opensuse.security:def:2009030400" version="1" class="patch"> | ||
<metadata> | ||
<title>CVE-2008-5679</title> | ||
<affected family="unix"> | ||
</affected> | ||
<reference ref_id="CVE-2008-5679" ref_url="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-5679" source="CVE"/> | ||
<description> | ||
The HTML parsing engine in Opera before 9.63 allows remote attackers to execute arbitrary code via crafted web pages that trigger an invalid pointer calculation and heap corruption. | ||
</description> | ||
</metadata> | ||
<criteria operator="OR"> | ||
<criteria operator="AND"> | ||
<criteria operator="OR"> | ||
<criterion test_ref="oval:org.opensuse.security:tst:2009030401" comment="suse103 is installed"/> | ||
<criterion test_ref="oval:org.opensuse.security:tst:2009030402" comment="suse110 is installed"/> | ||
<criterion test_ref="oval:org.opensuse.security:tst:2009030403" comment="suse111 is installed"/> | ||
</criteria> | ||
<criterion test_ref="oval:org.opensuse.security:tst:2009030400" comment="oval:org.opensuse.security:tst:2009030400 is installed"/> | ||
</criteria> | ||
<criteria operator="AND"> | ||
<criterion test_ref="oval:org.opensuse.security:tst:2009030403" comment="suse111-debug is installed"/> | ||
<criterion test_ref="oval:org.opensuse.security:tst:2009030400" comment="oval:org.opensuse.security:tst:2009030400 is installed"/> | ||
</criteria> | ||
</criteria> | ||
</definition> | ||
</definitions> | ||
<tests> | ||
<rpminfo_test id="oval:org.opensuse.security:tst:2009030400" version="11" comment="oval:org.opensuse.security:obj:2009030400 is version oval:org.opensuse.security:ste:2009030400" check="at least one" | ||
xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> | ||
<object object_ref="oval:org.opensuse.security:obj:2009030400"/> | ||
<state state_ref="oval:org.opensuse.security:ste:2009030400"/> | ||
</rpminfo_test> | ||
<rpminfo_test id="oval:org.opensuse.security:tst:2009030401" version="1" comment="oval:org.opensuse.security:obj:2009030401 is version oval:org.opensuse.security:ste:2009030401" check="at least one" | ||
xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> | ||
<object object_ref="oval:org.opensuse.security:obj:2009030401"/> | ||
<state state_ref="oval:org.opensuse.security:ste:2009030401"/> | ||
</rpminfo_test> | ||
<rpminfo_test id="oval:org.opensuse.security:tst:2009030402" version="9" comment="oval:org.opensuse.security:obj:2009030401 is version oval:org.opensuse.security:ste:2009030402" check="at least one" | ||
xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> | ||
<object object_ref="oval:org.opensuse.security:obj:2009030401"/> | ||
<state state_ref="oval:org.opensuse.security:ste:2009030402"/> | ||
</rpminfo_test> | ||
<rpminfo_test id="oval:org.opensuse.security:tst:2009030403" version="4" comment="oval:org.opensuse.security:obj:2009030401 is version oval:org.opensuse.security:ste:2009030403" check="at least one" | ||
xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> | ||
<object object_ref="oval:org.opensuse.security:obj:2009030401"/> | ||
<state state_ref="oval:org.opensuse.security:ste:2009030403"/> | ||
</rpminfo_test> | ||
</tests> | ||
<objects> | ||
<rpminfo_object id="oval:org.opensuse.security:obj:2009030400" version="1" | ||
xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> | ||
<name>opera</name> | ||
</rpminfo_object> | ||
<rpminfo_object id="oval:org.opensuse.security:obj:2009030401" version="1" | ||
xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> | ||
<name>openSUSE-release</name> | ||
</rpminfo_object> | ||
</objects> | ||
<states> | ||
<rpminfo_state id="oval:org.opensuse.security:ste:2009030400" version="1" | ||
xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> | ||
<evr datatype="evr_string" operation="less than">0:9.63-1.1</evr> | ||
</rpminfo_state> | ||
<rpminfo_state id="oval:org.opensuse.security:ste:2009030401" version="1" | ||
xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> | ||
<version operation="pattern match">^10.3$</version> | ||
</rpminfo_state> | ||
<rpminfo_state id="oval:org.opensuse.security:ste:2009030402" version="1" | ||
xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> | ||
<version operation="pattern match">^11.0$</version> | ||
</rpminfo_state> | ||
<rpminfo_state id="oval:org.opensuse.security:ste:2009030403" version="1" | ||
xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> | ||
<version operation="pattern match">^11.1$</version> | ||
</rpminfo_state> | ||
</states> | ||
</oval_definitions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters