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

From: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Mark Dilger <mark(dot)dilger(at)enterprisedb(dot)com>
Subject: Re: Possible NULL pointer deferenced (src/interfaces/libpq/fe-exec.c (line 563)
Date: 2020-06-21 13:54:09
Message-ID: CAEudQApdL+znP4xAdPieKGsNa+qzuG+bMJii9Ats6n9xbaTfWQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Em dom., 21 de jun. de 2020 às 02:16, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> escreveu:

> Ranier Vilela <ranier(dot)vf(at)gmail(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Dagfinn Ilmari Mannsåker 2020-06-21 14:02:07 Re: [PATCH] Missing links between system catalog documentation pages
Previous Message Josef Šimánek 2020-06-21 11:40:34 Re: [PATCH] Initial progress reporting for COPY command