diff options
Diffstat (limited to 'games-simulation/simutrans/files/simutrans-0.112.2-overflow.patch')
-rw-r--r-- | games-simulation/simutrans/files/simutrans-0.112.2-overflow.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/games-simulation/simutrans/files/simutrans-0.112.2-overflow.patch b/games-simulation/simutrans/files/simutrans-0.112.2-overflow.patch new file mode 100644 index 000000000000..6597ca071f92 --- /dev/null +++ b/games-simulation/simutrans/files/simutrans-0.112.2-overflow.patch @@ -0,0 +1,11 @@ +--- besch/reader/obj_reader.cc.orig 2013-01-22 17:22:02.509818038 -0500 ++++ besch/reader/obj_reader.cc 2013-01-22 17:22:58.650846577 -0500 +@@ -308,7 +308,7 @@ + void obj_reader_t::skip_nodes(FILE *fp,uint32 version) + { + obj_node_info_t node; +- char load_dummy[OBJ_NODE_INFO_SIZE], *p; ++ char load_dummy[OBJ_NODE_INFO_SIZE + 4], *p; // extra 4 for LARGE_RECORD_SIZE + + p = load_dummy; + if( version==COMPILER_VERSION_CODE_11 ) { |