diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-action/0verkill/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-action/0verkill/files')
7 files changed, 211 insertions, 0 deletions
diff --git a/games-action/0verkill/files/0verkill-0.16-CC.patch b/games-action/0verkill/files/0verkill-0.16-CC.patch new file mode 100644 index 000000000000..568f8a4aa6f2 --- /dev/null +++ b/games-action/0verkill/files/0verkill-0.16-CC.patch @@ -0,0 +1,50 @@ +--- a/Makefile.in 2010-11-08 13:30:42.060916323 -0500 ++++ b/Makefile.in 2010-11-08 13:31:03.199940471 -0500 +@@ -24,7 +24,7 @@ + server.o: server.c server.h net.h data.h hash.h cfg.h time.h math.h config.h error.h + client.o: client.c data.h sprite.h cfg.h net.h hash.h time.h math.h console.h help.h blit.h config.h error.h + xclient.o: client.c data.h sprite.h cfg.h net.h hash.h time.h math.h console.h help.h config.h error.h +- gcc -c $(CFLAGS) -DXWINDOW -o xclient.o client.c ++ $(CC) -c $(CFLAGS) -DXWINDOW -o xclient.o client.c + time.o: time.c time.h error.h + help.o: help.c blit.h error.h + avihelp.o: avihelp.c blit.h error.h +@@ -38,29 +38,29 @@ + + + avi: avi.o blit.o console.o kbd.o time.o avihelp.o error.o +- gcc $(LDFLAGS) -o avi avi.o blit.o console.o kbd.o error.o time.o avihelp.o $(LIBS) ++ $(CC) $(LDFLAGS) -o avi avi.o blit.o console.o kbd.o error.o time.o avihelp.o $(LIBS) + + xavi: avi.o blit.o xinterface.o xkbd.o time.o avihelp.o error.o +- gcc $(LDFLAGS) -o xavi avi.o blit.o xinterface.o xkbd.o error.o time.o avihelp.o $(LIBS) $(XLIBS) ++ $(CC) $(LDFLAGS) -o xavi avi.o blit.o xinterface.o xkbd.o error.o time.o avihelp.o $(LIBS) $(XLIBS) + + bot: bot.o data.o hash.o time.o net.o crc32.o md5.o md5hl.o error.o +- gcc $(LDFLAGS) -o bot bot.o data.o hash.o time.o net.o error.o md5.o md5hl.o crc32.o sprite.o $(LIBS) ++ $(CC) $(LDFLAGS) -o bot bot.o data.o hash.o time.o net.o error.o md5.o md5hl.o crc32.o sprite.o $(LIBS) + + 0verkill: client.o data.o sprite.o blit.o console.o hash.o time.o net.o error.o crc32.o md5.o md5hl.o kbd.o help.o +- gcc $(LDFLAGS) -o 0verkill client.o data.o sprite.o blit.o console.o error.o hash.o time.o md5.o md5hl.o kbd.o net.o crc32.o help.o $(LIBS) ++ $(CC) $(LDFLAGS) -o 0verkill client.o data.o sprite.o blit.o console.o error.o hash.o time.o md5.o md5hl.o kbd.o net.o crc32.o help.o $(LIBS) + @OVERKILL_SPECIAL@ + + x0verkill: xclient.o data.o sprite.o blit.o xinterface.o hash.o time.o net.o crc32.o error.o xkbd.o help.o md5.o md5hl.o +- gcc $(LDFLAGS) -o x0verkill xclient.o data.o blit.o sprite.o xinterface.o xkbd.o error.o md5.o md5hl.o hash.o time.o net.o crc32.o help.o $(LIBS) $(XLIBS) ++ $(CC) $(LDFLAGS) -o x0verkill xclient.o data.o blit.o sprite.o xinterface.o xkbd.o error.o md5.o md5hl.o hash.o time.o net.o crc32.o help.o $(LIBS) $(XLIBS) + + server: server.o data.o sprite.o blit.o console.o hash.o time.o kbd.o net.o crc32.o md5.o md5hl.o error.o +- gcc $(LDFLAGS) -o server server.o data.o sprite.o blit.o console.o hash.o time.o kbd.o md5.o md5hl.o error.o net.o crc32.o $(LIBS) ++ $(CC) $(LDFLAGS) -o server server.o data.o sprite.o blit.o console.o hash.o time.o kbd.o md5.o md5hl.o error.o net.o crc32.o $(LIBS) + + editor: editor.o data.o blit.o sprite.o console.o hash.o time.o kbd.o md5.o md5hl.o error.o +- gcc $(LDFLAGS) -o editor editor.o data.o blit.o sprite.o console.o hash.o md5.o md5hl.o error.o time.o kbd.o $(LIBS) ++ $(CC) $(LDFLAGS) -o editor editor.o data.o blit.o sprite.o console.o hash.o md5.o md5hl.o error.o time.o kbd.o $(LIBS) + + xeditor: editor.o data.o blit.o sprite.o xinterface.o hash.o time.o xkbd.o md5.o md5hl.o error.o +- gcc $(LDFLAGS) -o xeditor editor.o data.o blit.o sprite.o xinterface.o hash.o md5.o error.o md5hl.o time.o xkbd.o $(LIBS) $(XLIBS) ++ $(CC) $(LDFLAGS) -o xeditor editor.o data.o blit.o sprite.o xinterface.o hash.o md5.o error.o md5hl.o time.o xkbd.o $(LIBS) $(XLIBS) + + test_server: test_server.o net.o data.o crc32.o blit.o sprite.o time.o hash.o console.o kbd.o md5.o md5hl.o error.o +- gcc $(LDFLAGS) -o test_server test_server.o net.o data.o crc32.o blit.o sprite.o time.o hash.o md5.o md5hl.o error.o console.o kbd.o $(LIBS) ++ $(CC) $(LDFLAGS) -o test_server test_server.o net.o data.o crc32.o blit.o sprite.o time.o hash.o md5.o md5hl.o error.o console.o kbd.o $(LIBS) diff --git a/games-action/0verkill/files/0verkill-0.16-docs.patch b/games-action/0verkill/files/0verkill-0.16-docs.patch new file mode 100644 index 000000000000..90d049309f4d --- /dev/null +++ b/games-action/0verkill/files/0verkill-0.16-docs.patch @@ -0,0 +1,32 @@ +--- 0verkill-0.16/doc/README.html ++++ 0verkill-0.16-gentoo/doc/README.html +@@ -30,7 +30,7 @@ + <center><h1><a name="running">RUNNING</a></h1></center> + + <p><h2><a name="server">Running server</a></h2> +-<p>First thing to start 0verkill is run the server - type <i>server</i>. Server ++<p>First thing to start 0verkill is run the server - type <i>0verkill-server</i>. Server + takes options <i>-p</i> and <i>-n</i>. As usual, option <i>-h</i> prints help. + + <p> Option <i>-p</i> takes one argument: port number. Server needs UDP port +@@ -84,9 +84,9 @@ + + <p><h2><a name="testserver">Testing Program</a></h2> + +-<p>There's <i>test_server</i> program in the distribution. It avoids testing ++<p>There's <i>0verkill-test_server</i> program in the distribution. It avoids testing + remote server if it's up and how many players there is. To use it simply type +-<i>test_server -a <server address> -p <port number ></i>. ++<i>0verkill-test_server -a <server address> -p <port number ></i>. + + <center><h1><a name="controls">GAME CONTROLS</a></h1></center> + +--- 0verkill-0.16/doc/adding_a_level.txt ++++ 0verkill-0.16-gentoo/doc/adding_a_level.txt +@@ -19,5 +19,5 @@ + 5) If you want to create some cool new graphics, run + "avi grx/graphics_file.avi". Then add it to the data/new_level.sp + +-6) When the level is done, run "server -lX", where X is again from (1). And ++6) When the level is done, run "0verkill-server -lX", where X is again from (1). And + play! diff --git a/games-action/0verkill/files/0verkill-0.16-gentoo-paths.patch b/games-action/0verkill/files/0verkill-0.16-gentoo-paths.patch new file mode 100644 index 000000000000..d48b758c9e53 --- /dev/null +++ b/games-action/0verkill/files/0verkill-0.16-gentoo-paths.patch @@ -0,0 +1,23 @@ +--- a/sprite.c 2007-11-15 18:26:30.000000000 -0500 ++++ b/sprite.c 2007-11-15 18:26:57.000000000 -0500 +@@ -2,6 +2,7 @@ + #include <ctype.h> + #include <stdlib.h> + #include <stdio.h> ++#include <unistd.h> + + #ifndef WIN32 + #include "config.h" +@@ -188,6 +189,12 @@ + + if (!(f=fopen(filename,"rb"))) + { ++ chdir(DATA_PATH); ++ } ++ if (!(f=fopen(filename,"rb"))) { ++ chdir(DATA_PATH "/../"); ++ } ++ if (!(f=fopen(filename,"rb"))) { + unsigned char msg[256]; + snprintf(msg,256,"Error opening file \"%s\"!\n",filename); + ERROR(msg); diff --git a/games-action/0verkill/files/0verkill-0.16-home-overflow.patch b/games-action/0verkill/files/0verkill-0.16-home-overflow.patch new file mode 100644 index 000000000000..63bfb5fa7a6a --- /dev/null +++ b/games-action/0verkill/files/0verkill-0.16-home-overflow.patch @@ -0,0 +1,26 @@ +--- a/client.c 2001-12-16 04:26:38.000000000 -0500 ++++ b/client.c 2003-11-17 15:12:52.850772508 -0500 +@@ -191,9 +191,9 @@ + unsigned char txt[256]; + + #ifndef WIN32 +- sprintf(txt,"%s/%s",getenv("HOME"),CFG_FILE); ++ snprintf(txt,sizeof(txt),"%s/%s",getenv("HOME"),CFG_FILE); + #else +- sprintf(txt,"./%s",CFG_FILE); ++ snprintf(txt,sizeof(txt),"./%s",CFG_FILE); + #endif + stream=fopen(txt,"r"); + if (!stream)return; +@@ -223,9 +223,9 @@ + unsigned char txt[256]; + + #ifndef WIN32 +- sprintf(txt,"%s/%s",getenv("HOME"),CFG_FILE); ++ snprintf(txt,sizeof(txt),"%s/%s",getenv("HOME"),CFG_FILE); + #else +- sprintf(txt,"./%s",CFG_FILE); ++ snprintf(txt,sizeof(txt),"./%s",CFG_FILE); + #endif + stream=fopen(txt,"w"); + if (!stream)return; diff --git a/games-action/0verkill/files/0verkill-0.16-ovflfix.patch b/games-action/0verkill/files/0verkill-0.16-ovflfix.patch new file mode 100644 index 000000000000..a8a832e19619 --- /dev/null +++ b/games-action/0verkill/files/0verkill-0.16-ovflfix.patch @@ -0,0 +1,24 @@ +--- a/server.c 2010-11-08 11:53:18.000000000 +0100 ++++ b/server.c 2010-11-08 11:53:43.000000000 +0100 +@@ -905,8 +905,8 @@ + int len; + + packet[0]=P_MESSAGE; +- if (!name){snprintf(packet+1,256,"%s",msg);len=strlen(msg)+1+1;} +- else {snprintf(packet+1,256,"%s> %s",name,msg);len=strlen(name)+strlen(msg)+1+3;} ++ if (!name){snprintf(packet+1,255,"%s",msg);len=strlen(msg)+1+1;} ++ else {snprintf(packet+1,255,"%s> %s",name,msg);len=strlen(name)+strlen(msg)+1+3;} + send_chunk_packet_to_player(packet,len,player); + } + +--- a/console.c 2010-11-08 11:53:26.000000000 +0100 ++++ b/console.c 2010-11-08 11:54:44.000000000 +0100 +@@ -206,7 +206,7 @@ + void c_setcolor_3b(unsigned char a) + { + char txt[8]; +- snprintf(txt,16,"\033[%dm",30+(a&7)); ++ snprintf(txt,sizeof(txt),"\033[%dm",30+(a&7)); + my_print(txt); + } + diff --git a/games-action/0verkill/files/0verkill-0.16-segv.patch b/games-action/0verkill/files/0verkill-0.16-segv.patch new file mode 100644 index 000000000000..9f9656dfd9fa --- /dev/null +++ b/games-action/0verkill/files/0verkill-0.16-segv.patch @@ -0,0 +1,39 @@ +diff -Naurp 0verkill-0.16.old/data.c 0verkill-0.16/data.c +--- 0verkill-0.16.old/data.c 2007-10-30 19:49:59.000000000 +0100 ++++ 0verkill-0.16/data.c 2007-10-30 20:25:08.000000000 +0100 +@@ -471,7 +471,7 @@ my_double can_go_x(my_double old_x,my_do + for (x=double2int(old_x)+1;x<=round_up(new_x);x++) /* go to the right */ + { + if (x>AREA_X-1) return int2double(AREA_X-1); +- for (y=yh;y<=yl;y++) ++ for (y=(yh>=0?yh:0);y<=yl;y++) + if ((area_a[x+y*AREA_X]&240)==TYPE_WALL) + return int2double(x-1); + } +@@ -479,7 +479,7 @@ my_double can_go_x(my_double old_x,my_do + for (x=round_up(old_x)-1;x>=double2int(new_x);x--) /* go to the left */ + { + if (x<0) return 0; +- for (y=yh;y<=yl;y++) ++ for (y=(yh>=0?yh:0);y<=yl;y++) + if ((area_a[x+y*AREA_X]&240)==TYPE_WALL) return int2double(x+1); + } + if(flag)*flag=0; +@@ -501,7 +501,7 @@ my_double can_go_y(my_double old_y, my_d + for (y=double2int(old_y)+1;y<=round_up(new_y);y++) /* go down */ + { + if (y>AREA_Y-1) return int2double(AREA_Y-1); +- for (x=xl;x<=xr;x++) ++ for (x=(xl>=0?xl:0);x<=xr;x++) + if ((area_a[x+y*AREA_X]&240)==TYPE_WALL||(!down_ladder&&((area_a[x+y*AREA_X]&240)==TYPE_JUMP||(area_a[x+y*AREA_X]&240)==TYPE_JUMP_FOREGROUND))) return int2double(y-1); + } + else +@@ -510,7 +510,7 @@ my_double can_go_y(my_double old_y, my_d + for (y=round_up(old_y)-1;y>=double2int(new_y);y--) /* go up */ + { + if (y<0) return 0; +- for (x=xl;x<=xr;x++) ++ for (x=(xl>=0?xl:0);x<=xr;x++) + if ((area_a[x+y*AREA_X]&240)==TYPE_WALL) return int2double(y+1); + } + } diff --git a/games-action/0verkill/files/0verkill-0.16-underflow-check.patch b/games-action/0verkill/files/0verkill-0.16-underflow-check.patch new file mode 100644 index 000000000000..d0af396deafd --- /dev/null +++ b/games-action/0verkill/files/0verkill-0.16-underflow-check.patch @@ -0,0 +1,17 @@ +The vulnerability is cause due to an integer underflow error in "recv_packet()" +within the handling of a received UDP packet. This can be exploited to cause +out-of-bounds memory access which crashes the server process via a UDP packet +that is smaller than 12 bytes in size. + +http://bugs.gentoo.org/136222 + +--- 0verkill-0.16/net.c ++++ 0verkill-0.16/net.c +@@ -84,6 +84,7 @@ + p=mem_alloc(max_len+12); + if (!p)return -1; /* not enough memory */ + retval=recvfrom(fd,p,max_len+12,0,addr,addr_len); ++ if (retval<12)return -1; /* not enough data from network */ + memcpy(packet,p+12,max_len); + crc=p[0]+(p[1]<<8)+(p[2]<<16)+(p[3]<<24); + s=p[4]+(p[5]<<8)+(p[6]<<16)+(p[7]<<24); |