pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Sasmit Utkarsh <utkarshsasmit@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Postgresql assistance needed
Date: Thu, 22 Feb 2024 11:50:05 +0100
Message-ID: <1ee85442d6b0411cd4846e61449cfe85d0f87a30.camel@cybertec.at> (raw)
In-Reply-To: <CAM-5MT33-RMk+p7RLaH+VH3AZNKpZVZCFVbk=q-F7McqHu89AA@mail.gmail.com>
References: <CAM-5MT3pqu+3xV6syK8wRF7HYCE9F_Z5U4Rwi7F+OHfDcfXeWQ@mail.gmail.com>
	<19a809d477baef0cd9414d8d504705cf268ece52.camel@cybertec.at>
	<CAM-5MT33-RMk+p7RLaH+VH3AZNKpZVZCFVbk=q-F7McqHu89AA@mail.gmail.com>

On Thu, 2024-02-22 at 16:13 +0530, Sasmit Utkarsh wrote:
> On Thu, Feb 22, 2024 at 2:20 PM Laurenz Albe <laurenz.albe@cybertec.at> wrote:
> > On Thu, 2024-02-22 at 14:01 +0530, Sasmit Utkarsh wrote:
> > > ==3343433==ERROR: AddressSanitizer: heap-buffer-overflow on address 0xf337ba80 at pc 0xf795fcdd bp 0xff8a74d8 sp 0xff8a70b0
> > > READ of size 4096 at 0xf337ba80 thread T0
> > >     #0 0xf795fcdc in __interceptor_memcpy (/nix/store/3blqv6wzmwqgkkw45i6c8w0bkwldk418-gcc-12.2.0-lib/lib/libasan.so.8+0x42cdc)
> > >     #1 0xf78c34bb in pqPutnchar (/nix/store/glkv3qv4y64xigwpjcwflp3ni2anjma0-postgresql-14.9-lib/lib/libpq.so.5+0x174bb)
> > >     #2 0xf78be05e in PQsendQueryGuts (/nix/store/glkv3qv4y64xigwpjcwflp3ni2anjma0-postgresql-14.9-lib/lib/libpq.so.5+0x1205e)
> > >     #3 0xf78c05a2 in PQexecPrepared (/nix/store/glkv3qv4y64xigwpjcwflp3ni2anjma0-postgresql-14.9-lib/lib/libpq.so.5+0x145a2)
> > 
> > Perhaps you forgot to terminate a string with '\0'.
>
> Sorry but are you talking about the export variables in the result?

Whatever you fed to PQexecPrepared.

Yours,
Laurenz Albe





view thread (10+ messages)  latest in thread

Message-ID: <1ee85442d6b0411cd4846e61449cfe85d0f87a30.camel@cybertec.at>
Permalink:  ../1ee85442d6b0411cd4846e61449cfe85d0f87a30.camel@cybertec.at/
Also on:    postgresql.org/message-id/1ee85442d6b0411cd4846e61449cfe85d0f87a30.camel@cybertec.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, utkarshsasmit@gmail.com
  Subject: Re: Postgresql assistance needed
  In-Reply-To: <1ee85442d6b0411cd4846e61449cfe85d0f87a30.camel@cybertec.at>
  References: <CAM-5MT3pqu+3xV6syK8wRF7HYCE9F_Z5U4Rwi7F+OHfDcfXeWQ@mail.gmail.com> <19a809d477baef0cd9414d8d504705cf268ece52.camel@cybertec.at> <CAM-5MT33-RMk+p7RLaH+VH3AZNKpZVZCFVbk=q-F7McqHu89AA@mail.gmail.com> <1ee85442d6b0411cd4846e61449cfe85d0f87a30.camel@cybertec.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox