Wargus / stargus

Importer and scripts for Starcraft
GNU General Public License v2.0
130 stars 24 forks source link

fixed use after free issue in wav gzip #29

Closed Katana-Steel closed 7 years ago

Katana-Steel commented 7 years ago

gzclose(fp) will finish any pending writes, so freeing the write buffer before closing the file is essentially referencing free'ed memory while the close calls flushes the write buffer.

timfel commented 7 years ago

Thanks!