Re: Possible NULL pointer deferenced (src/interfaces/libpq/fe-exec.c(line 563)

Поиск
Список
Период
Сортировка
От Ranier Vilela
Тема Re: Possible NULL pointer deferenced (src/interfaces/libpq/fe-exec.c(line 563)
Дата
Msg-id CAEudQApdL+znP4xAdPieKGsNa+qzuG+bMJii9Ats6n9xbaTfWQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Possible NULL pointer deferenced (src/interfaces/libpq/fe-exec.c (line 563)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Em dom., 21 de jun. de 2020 às 02:16, Tom Lane <tgl@sss.pgh.pa.us> escreveu:
Ranier Vilela <ranier.vf@gmail.com> writes:
> The res->curBlock pointer possibly, can be NULL here (line 563).

No, it can't.

To get to that line, nBytes has to be > 0, which means res->spaceLeft
has to be > 0, which cannot happen while res->curBlock is NULL.
Hi Tom, thanks for answer.

regards,
Ranier Vilela

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

Предыдущее
От: Josef Šimánek
Дата:
Сообщение: Re: [PATCH] Initial progress reporting for COPY command
Следующее
От: ilmari@ilmari.org (Dagfinn Ilmari Mannsåker)
Дата:
Сообщение: Re: [PATCH] Missing links between system catalog documentation pages