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

Summary: Dereference argv without NULL check in MusicCMD_Start function
Product: SDL_mixer Reporter: Nitz <nitin.j4>
Component: miscAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2    
Version: unspecified   
Hardware: x86   
OS: Linux   
Attachments: Patch for Dereference argv after NULL check

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