Re: GetTokenInformation() and FreeSid() at port/exec.c

Поиск
Список
Период
Сортировка
От Andrew Chernow
Тема Re: GetTokenInformation() and FreeSid() at port/exec.c
Дата
Msg-id 4A40D531.2030206@esilo.com
обсуждение исходный текст
Ответ на Re: GetTokenInformation() and FreeSid() at port/exec.c  (Andrew Chernow <ac@esilo.com>)
Список pgsql-bugs
>> At present, a specific error, crash or trouble seems not to have
>> happened.

The reason its not crashing is that most, if not all, windows allocation
functions know which addresses belong to them.  FreeSid is actually
documented as returning NULL on success.  On failure it returns the
address you tried to free.

Although the FreeSid call causes no harm because its defensive, there is
still the issue of leaking the TOKEN_USER structure.

--
Andrew Chernow
eSilo, LLC
every bit counts
http://www.esilo.com/

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: BUG #4869: No proper initialization of OpenSSL-Engine in libpq
Следующее
От: Lars Kanis
Дата:
Сообщение: Re: BUG #4869: No proper initialization of OpenSSL-Engine in libpq