Bug 709804

Summary: with wrong input library sigegv
Product: [Fedora] Fedora Reporter: Nikola Pajkovsky <npajkovs>
Component: json-cAssignee: Christopher Meng <i>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: 19CC: dhoward, susi.lehtola
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 08:16:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
json-sigsegv none

Description Nikola Pajkovsky 2011-06-01 17:08:36 UTC
Created attachment 502327 [details]
json-sigsegv

Description of problem:
function json_tokener_parse() returns odd value when input is something other then json.

json_object_object_get (jso=0xfffffffffffffffc, key=0x400b6c "num_items") at json_object.c:272
272	  return (struct json_object*) lh_table_lookup(jso->o.c_object, key);

Version-Release number of selected component (if applicable):
json-c-0.9-1.el6.x86_64 (it's from epel, but its same package)

How reproducible:
I've created a reproducer. See attachments

Steps to Reproduce:
1.
2.
3.
  
Actual results:
sigsegv

Expected results:
not sigsegv and return NULL

Additional info:

Comment 1 Susi Lehtola 2011-06-01 17:45:34 UTC
Contacted upstream about the issue.

Comment 2 Fedora End Of Life 2013-04-03 19:50:13 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle.
Changing version to '19'.

(As we did not run this process for some time, it could affect also pre-Fedora 19 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.)

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

Comment 4 Fedora Admin XMLRPC Client 2014-07-22 17:43:04 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 5 Fedora Admin XMLRPC Client 2014-07-22 23:54:17 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.