Bug 251482 - Use after free in confmisc.c
Use after free in confmisc.c
Status: CLOSED UPSTREAM
Product: Fedora
Classification: Fedora
Component: alsa-lib (Show other bugs)
rawhide
All Linux
low Severity low
: ---
: ---
Assigned To: Martin Stransky
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-08-09 07:51 EDT by Kjartan Maraas
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-08-13 05:32:02 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)

  None (edit)
Description Kjartan Maraas 2007-08-09 07:51:22 EDT
Description of problem:

Around line 767 the code looks like this:

        card = snd_card_get_index(str);
        free(str);
        if (card < 0)
                SNDERR("cannot find card '%s'", str);
        return card;
}

The free(str); call should be moved so it's called after finishing using str of
course :-)

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


How reproducible:


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


Expected results:


Additional info:
Comment 1 Martin Stransky 2007-08-13 05:32:02 EDT
Thanks for the report. I moved it to upstream and they should fix that for all
distros.

It's ALSA project bug #3300
(https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3300) and you can watch
it there. 

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