Bug 709804 - with wrong input library sigegv
Summary: with wrong input library sigegv
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: json-c
Version: 19
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Christopher Meng
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-01 17:08 UTC by Nikola Pajkovsky
Modified: 2014-08-06 08:16 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-06 08:16:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
json-sigsegv (1.17 KB, application/x-gzip)
2011-06-01 17:08 UTC, Nikola Pajkovsky
no flags Details

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.


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