We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2970 - Dereference argv without NULL check in MusicCMD_Start function
Summary: Dereference argv without NULL check in MusicCMD_Start function
Status: RESOLVED FIXED
Alias: None
Product: SDL_mixer
Classification: Unclassified
Component: misc (show other bugs)
Version: unspecified
Hardware: x86 Linux
: P2 major
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-01 10:32 UTC by Nitz
Modified: 2017-10-13 06:12 UTC (History)
0 users

See Also:


Attachments
Patch for Dereference argv after NULL check (511 bytes, patch)
2015-05-01 10:32 UTC, Nitz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nitz 2015-05-01 10:32:02 UTC
Created attachment 2144 [details]
Patch for Dereference argv after NULL check

In function MusicCMD_Start:

perror(argv[0]);

Here argv getting d reference without NULL check.

Patch is attached.

Thanks!!!
Comment 1 Sam Lantinga 2017-10-13 06:12:47 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL_mixer/rev/52007e252a1c