Gentoo Archives: gentoo-commits

From: "Alfredo Tupone (tupone)" <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-action/d2x/files: d2x-0.2.5-ovflw.patch
Date: Sat, 01 Sep 2012 18:42:50
Message-Id: 20120901184237.2FCB420EF6@flycatcher.gentoo.org
1 tupone 12/09/01 18:42:37
2
3 Added: d2x-0.2.5-ovflw.patch
4 Log:
5 Fix some overflow. Bug #431800
6
7 (Portage version: 2.1.11.9/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 games-action/d2x/files/d2x-0.2.5-ovflw.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-action/d2x/files/d2x-0.2.5-ovflw.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-action/d2x/files/d2x-0.2.5-ovflw.patch?rev=1.1&content-type=text/plain
14
15 Index: d2x-0.2.5-ovflw.patch
16 ===================================================================
17 --- main/multi.h.old 2012-09-01 14:33:13.668620792 +0200
18 +++ main/multi.h 2012-09-01 14:33:25.043385055 +0200
19 @@ -120,7 +120,7 @@
20
21 #define MAX_NET_CREATE_OBJECTS 40
22
23 -#define MAX_MULTI_MESSAGE_LEN 120
24 +#define MAX_MULTI_MESSAGE_LEN 138
25
26 // Exported functions
27
28 --- main/ai.c.old 2012-09-01 15:02:36.754081633 +0200
29 +++ main/ai.c 2012-09-01 20:16:07.846989673 +0200
30 @@ -1885,8 +1885,11 @@
31 fread( &Last_gate_time, sizeof(fix), 1, fp );
32 fread( &Gate_interval, sizeof(fix), 1, fp );
33 fread( &Boss_dying_start_time, sizeof(fix), 1, fp );
34 - fread( &Boss_dying, sizeof(int), 1, fp );
35 - fread( &Boss_dying_sound_playing, sizeof(int), 1, fp );
36 + int temp;
37 + fread( &temp, sizeof(int), 1, fp );
38 + Boss_dying = temp;
39 + fread( &temp, sizeof(int), 1, fp );
40 + Boss_dying_sound_playing = temp;
41 fread( &Boss_hit_time, sizeof(fix), 1, fp );
42 // -- MK, 10/21/95, unused! -- fread( &Boss_been_hit, sizeof(int), 1, fp );