Source Code Project Mantis - FSSCP
View Issue Details
0003168FSSCPsoundpublic2015-07-10 21:202015-07-11 05:52
Reporterngld 
Assigned Tom_m 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version3.7.3 
Target VersionFixed in Version 
Summary0003168: snd_load leaks cfile handles if it can't parse a file.
Descriptionsnd_load() returns before closing the file handle if ds_parse_sound() fails.
That can lead to a "A free Cfile_block could not be found." error if a mod contains a corrupted audio file.

BTA ran into this problem when FSO couldn't read a .wav file: http://www.hard-light.net/forums/index.php?topic=89914.0
Steps To ReproduceCreate a ship or weapon which uses a corrupted sound file and use it in FSO.
TagsNo tags attached.
Attached Files

Notes
(0016761)
m_m   
2015-07-11 04:59   
PR containing a fix: https://github.com/scp-fs2open/fs2open.github.com/pull/232

Issue History
2015-07-10 21:20ngldNew Issue
2015-07-11 04:59m_mNote Added: 0016761
2015-07-11 05:52m_mStatusnew => resolved
2015-07-11 05:52m_mResolutionopen => fixed
2015-07-11 05:52m_mAssigned To => m_m