NULL dereference when memory is tight

Поиск
Список
Период
Сортировка
От Brian Sutherland
Тема NULL dereference when memory is tight
Дата
Msg-id 20110220164700.GC20732@Boo.local
обсуждение исходный текст
Ответы Re: NULL dereference when memory is tight  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Daniele Varrazzo
Дата:
Сообщение: Re: Conversion of empty arrays
Следующее
От: Daniele Varrazzo
Дата:
Сообщение: Re: NULL dereference when memory is tight