Re: [BUG] Possible occurrence of segfault in ecpg test

2024-12-11 Thread Tom Lane
Daniil Davydov <3daniss...@gmail.com> writes: > Thus, if the program behaves in an unexpected way and the transaction > is aborted before it executes the > "select data1 into :recv_vlen_buf from test" query, dump_binary will > refer to a null pointer. So, instead of an error > message, the user wil

[BUG] Possible occurrence of segfault in ecpg test

2024-12-09 Thread Daniil Davydov
Hi, The src/interfaces/ecpg/test/sql/bytea.pgc file contains the following code : *** init(); exec sql truncate test; exec sql insert into test values(:send_buf[0], :send_buf[1]); exec sql insert into test values(:send_buf[0], :send_buf[1]); exec sql select data1 into :recv_vlen_buf from test; dump