NULL dereference when memory is tight - Mailing list psycopg

From Brian Sutherland
Subject NULL dereference when memory is tight
Date
Msg-id 20110220164700.GC20732@Boo.local
Whole thread Raw
Responses Re: NULL dereference when memory is tight  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
List psycopg
Hi,

I recently found a few places in the latest beta release where a NULL
dereference could occur when insufficient memory is available.

For example in connection_type.c:

     830     self->dsn = strdup(dsn);
     ...
     855     pos = strstr(self->dsn, "password");

strdup could return a NULL.

Admittedly this is probably a minor bug, but would it interest anyone if
I report these somewhere?

--
Brian Sutherland

psycopg by date:

Previous
From: Daniele Varrazzo
Date:
Subject: Re: Conversion of empty arrays
Next
From: Daniele Varrazzo
Date:
Subject: Re: NULL dereference when memory is tight