Re: BUG #19967: ecpg crashes after "cursor does not exist" on FETCH or MOVE

From: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
To: aman(at)stack-auth(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19967: ecpg crashes after "cursor does not exist" on FETCH or MOVE
Date: 2026-12-02 16:52:57
Message-ID: CAHGQGwHk02PMJazcWboSMLJBYrOMDLiNsgPTTbV-SYn9ib11ow@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Wed, Dec 2, 2026 at 9:30 PM PG Bug reporting form
<noreply(at)postgresql(dot)org> wrote:
> ecpg crashes with a segmentation fault when a FETCH or MOVE names a
> cursor that was never declared.

Thanks for the report! I was able to reproduce the issue.

I've attached a patch to fix it. Thoughts?

Regards,

--
Fujii Masao

Attachment Content-Type Size
v1-0001-ecpg-Fix-crashes-on-FETCH-and-MOVE-of-undeclared-.patch application/octet-stream 5.8 KB
nocfbot-v1-0001-ecpg-Fix-crashes-on-FETCH-and-MOVE-of-undeclared-v17-v15.patch application/octet-stream 6.1 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2026-12-02 16:58:15 Re: BUG #19965: btree_gist index on timetz returns too few rows for <, > and <>
Previous Message Tom Lane 2026-12-02 16:09:34 Re: BUG #19966: FULL JOIN testing a NOT NULL column with IS NULL fails in 19, works in 18