Re: Fix out-of-bounds in the function PQescapeinternal (src/interfaces/libpq/fe-exec.c)

2024-04-04 Thread Ranier Vilela
Em qua., 3 de abr. de 2024 às 08:36, Ranier Vilela escreveu: > > Em ter., 2 de abr. de 2024 às 18:13, Tom Lane > escreveu: > >> Ranier Vilela writes: >> > While I working in [1], Coverity reported some errors: >> > src/bin/pg_basebackup/pg_createsubscriber.c >> > CID 1542690: (#1 of 2):

Re: Fix out-of-bounds in the function PQescapeinternal (src/interfaces/libpq/fe-exec.c)

2024-04-03 Thread Ranier Vilela
Em ter., 2 de abr. de 2024 às 18:13, Tom Lane escreveu: > Ranier Vilela writes: > > While I working in [1], Coverity reported some errors: > > src/bin/pg_basebackup/pg_createsubscriber.c > > CID 1542690: (#1 of 2): Out-of-bounds access (OVERRUN) > > alloc_strlen: Allocating insufficient memory

Re: Fix out-of-bounds in the function PQescapeinternal (src/interfaces/libpq/fe-exec.c)

2024-04-02 Thread Tom Lane
Ranier Vilela writes: > While I working in [1], Coverity reported some errors: > src/bin/pg_basebackup/pg_createsubscriber.c > CID 1542690: (#1 of 2): Out-of-bounds access (OVERRUN) > alloc_strlen: Allocating insufficient memory for the terminating null of > the string. [Note: The source code

Fix out-of-bounds in the function PQescapeinternal (src/interfaces/libpq/fe-exec.c)

2024-03-30 Thread Ranier Vilela
Hi, While I working in [1], Coverity reported some errors: src/bin/pg_basebackup/pg_createsubscriber.c CID 1542690: (#1 of 2): Out-of-bounds access (OVERRUN) alloc_strlen: Allocating insufficient memory for the terminating null of the string. [Note: The source code implementation of the function