SHA256
1
0
forked from pool/gnubg
gnubg/gnubgmodule_bufferoverflow.patch

21 lines
585 B
Diff
Raw Normal View History

--- 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;