Bug 1183228 - Uninitialized and unalloced free
Summary: Uninitialized and unalloced free
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: scl-utils
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Zeleny
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-17 12:43 UTC by Honza Horak
Modified: 2015-01-30 04:44 UTC (History)
3 users (show)

Fixed In Version: scl-utils-2.0.1-2.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-30 04:28:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
gdb full backtrace (3.41 KB, text/plain)
2015-01-17 12:44 UTC, Honza Horak
no flags Details
core dump (812.00 KB, application/octet-stream)
2015-01-17 12:46 UTC, Honza Horak
no flags Details
proposed patch (660 bytes, patch)
2015-01-17 12:48 UTC, Honza Horak
no flags Details | Diff

Description Honza Horak 2015-01-17 12:43:55 UTC
Description of problem:
Running `scl enable nonexisting whatever` crashed with core dump once to me. I'll attach core dump and backtrace.

Version-Release number of selected component (if applicable):
$> rpm -q scl-utils
scl-utils-2.0-2.fc21.x86_64

How reproducible:
sometimes, depending on content of uninitialized memory block

Steps to Reproduce:
1. scl enable nonexisting whatever
2. see the crash or at least look at the code ;)

Actual results:
freeing unallocated and uninitialized memory 

Expected results:
do it right

Additional info:
I really recommend running Coverity or other static analysis on this package.

Comment 1 Honza Horak 2015-01-17 12:44:50 UTC
Created attachment 981007 [details]
gdb full backtrace

Comment 2 Honza Horak 2015-01-17 12:46:19 UTC
Created attachment 981008 [details]
core dump

Comment 3 Honza Horak 2015-01-17 12:48:58 UTC
Created attachment 981009 [details]
proposed patch

(without guarantee)

Comment 4 Fedora Update System 2015-01-21 08:26:58 UTC
scl-utils-2.0.1-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/scl-utils-2.0.1-1.fc21

Comment 5 Fedora Update System 2015-01-21 08:27:18 UTC
scl-utils-2.0.1-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/scl-utils-2.0.1-1.fc20

Comment 6 Fedora Update System 2015-01-21 23:04:43 UTC
Package scl-utils-2.0.1-2.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing scl-utils-2.0.1-2.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-1006/scl-utils-2.0.1-2.fc21
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2015-01-30 04:28:46 UTC
scl-utils-2.0.1-2.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2015-01-30 04:44:17 UTC
scl-utils-2.0.1-2.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.


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