Changeset - r20973:ac8069eb1768
[Not reviewed]
master
0 1 0
rubidium - 11 years ago 2013-11-22 21:41:49
rubidium@openttd.org
(svn r26047) -Fix: possible, but very unlikely, null pointer dereference when gunziping just downloaded files
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/network/network_content.cpp
Show inline comments
 
@@ -404,6 +404,8 @@ static bool GunzipFile(const ContentInfo
 
#if defined(WITH_ZLIB)
 
	bool ret = true;
 
	FILE *ftmp = fopen(GetFullFilename(ci, true), "rb");
 
	if (ftmp == NULL) return false;
 

	
 
	gzFile fin = gzdopen(fileno(ftmp), "rb");
 
	FILE *fout = fopen(GetFullFilename(ci, false), "wb");
 

	
0 comments (0 inline, 0 general)