gnubg/gnubgmodule_bufferoverflow.patch
Pavol Rusnak db66045181 Accepting request 40923 from home:cwh
Copy from home:cwh/gnubg via accept of submit request 40923 revision 8.
Request was accepted with message:
Reviewed ok

OBS-URL: https://build.opensuse.org/request/show/40923
OBS-URL: https://build.opensuse.org/package/show/games/gnubg?expand=0&rev=1
2010-06-01 22:03:24 +00:00

21 lines
585 B
Diff

--- gnubg/gnubgmodule.c.~1.79.~ 2008-02-18 07:20:04.000000000 +0100
+++ gnubg/gnubgmodule.c 2010-05-19 11:08:26.000000000 +0200
@@ -881,7 +881,7 @@
PyObject *pyBoard = NULL;
int nChequers = 15;
int nPoints = 6;
- unsigned int anBoard[ 25 ];
+ unsigned int anBoard[ 2 ][ 25 ];
memcpy( anBoard, msBoard(), sizeof(TanBoard) );
@@ -897,7 +897,7 @@
static PyObject *PythonPositionFromBearoff( PyObject* self UNUSED_PARAM, PyObject *args )
{
- unsigned int anBoard[ 25 ];
+ unsigned int anBoard[ 2 ][ 25 ];
int iPos = 0;
int nChequers = 15;
int nPoints = 6;