View Issue Details

IDProjectCategoryView StatusLast Update
0003168FSSCPsoundpublic2015-07-11 09:52
Reporterngld Assigned Tom_m  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.7.3 
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.

Activities

m_m

2015-07-11 08:59

developer   ~0016761

PR containing a fix: https://github.com/scp-fs2open/fs2open.github.com/pull/232

Issue History

Date Modified Username Field Change
2015-07-11 01:20 ngld New Issue
2015-07-11 08:59 m_m Note Added: 0016761
2015-07-11 09:52 m_m Status new => resolved
2015-07-11 09:52 m_m Resolution open => fixed
2015-07-11 09:52 m_m Assigned To => m_m