Re: Fix possible dereference null pointer (PQprint)

2024-06-02 Thread Ranier Vilela
Em sex., 31 de mai. de 2024 às 05:03, Daniel Gustafsson escreveu: > > On 27 May 2024, at 16:52, Ranier Vilela wrote: > > > In the function *PQprint*, the variable po->fieldName can be NULL. > > Yes. > > > See the checks a few lines up. > > Indeed, let's check it. > > for (numFieldName =

Re: Fix possible dereference null pointer (PQprint)

2024-05-31 Thread Daniel Gustafsson
> On 27 May 2024, at 16:52, Ranier Vilela wrote: > In the function *PQprint*, the variable po->fieldName can be NULL. Yes. > See the checks a few lines up. Indeed, let's check it. for (numFieldName = 0; po->fieldName && po->fieldName[numFieldName]; numFieldNa