Piet Delport patches: 1 of 3.

This commit is contained in:
Federico Di Gregorio 2006-09-23 05:10:58 +00:00
parent 49aa00d783
commit 3009a29b11
11 changed files with 19 additions and 10 deletions

View File

@ -1,3 +1,12 @@
2006-09-23 Federico Di Gregorio <fog@initd.org>
* Applied patch 1/3 from Piet Delport; from his email:
psycopg2-PyObject_HEAD.diff adds missing underscores to several
"PyObject_HEAD" declarations. As far as i can tell from gdb, the
"PyObject HEAD" versions end up accidentally meaning almost exactly
the same, but get aligned differently on AMD64, resulting in wrong
size calculation and memory corruption later.
2006-09-11 Federico Di Gregorio <fog@initd.org>
* Fixed syntax error in lib/extras.py (see #123)

View File

@ -31,7 +31,7 @@ extern "C" {
extern PyTypeObject asisType;
typedef struct {
PyObject HEAD;
PyObject_HEAD;
/* this is the real object we wrap */
PyObject *wrapped;

View File

@ -32,7 +32,7 @@ extern "C" {
extern PyTypeObject binaryType;
typedef struct {
PyObject HEAD;
PyObject_HEAD;
PyObject *wrapped;
PyObject *buffer;

View File

@ -31,7 +31,7 @@ extern "C" {
extern PyTypeObject pydatetimeType;
typedef struct {
PyObject HEAD;
PyObject_HEAD;
PyObject *wrapped;
int type;

View File

@ -31,7 +31,7 @@ extern "C" {
extern PyTypeObject listType;
typedef struct {
PyObject HEAD;
PyObject_HEAD;
PyObject *wrapped;
PyObject *connection;

View File

@ -31,7 +31,7 @@ extern "C" {
extern PyTypeObject mxdatetimeType;
typedef struct {
PyObject HEAD;
PyObject_HEAD;
PyObject *wrapped;
int type;

View File

@ -31,7 +31,7 @@ extern "C" {
extern PyTypeObject pbooleanType;
typedef struct {
PyObject HEAD;
PyObject_HEAD;
/* this is the real object we wrap */
PyObject *wrapped;

View File

@ -31,7 +31,7 @@ extern "C" {
extern PyTypeObject qstringType;
typedef struct {
PyObject HEAD;
PyObject_HEAD;
PyObject *wrapped;
PyObject *buffer;

View File

@ -38,7 +38,7 @@ extern "C" {
extern PyTypeObject connectionType;
typedef struct {
PyObject HEAD;
PyObject_HEAD;
pthread_mutex_t lock; /* the global connection lock */

View File

@ -34,7 +34,7 @@ extern "C" {
extern PyTypeObject cursorType;
typedef struct {
PyObject HEAD;
PyObject_HEAD;
connectionObject *conn; /* connection owning the cursor */

View File

@ -32,7 +32,7 @@ extern "C" {
extern PyTypeObject isqlquoteType;
typedef struct {
PyObject HEAD;
PyObject_HEAD;
PyObject *wrapped;