openbsd-ports/games/openttd/patches/patch-src_fileio_cpp
sthen d5b77889df SECURITY/bugfix update to OpenTTD 1.1.3, from Daniel Dickman (maintainer),
thanks Tobias Ulmer for testing.

CVE-2011-3341 Denial of service via improperly validated commands
CVE-2011-3342 Buffer overflows in savegame loading
CVE-2011-3343 Multiple buffer overflows in validation of external data
2011-09-26 10:12:46 +00:00

12 lines
362 B
Plaintext

$OpenBSD: patch-src_fileio_cpp,v 1.3 2011/09/26 10:12:46 sthen Exp $
--- src/fileio.cpp.orig Thu Sep 15 16:06:59 2011
+++ src/fileio.cpp Sat Sep 17 22:50:41 2011
@@ -26,6 +26,7 @@
#endif
#include <sys/stat.h>
#include <algorithm>
+#include <unistd.h>
/*************************************************/
/* FILE IO ROUTINES ******************************/