Thread: Patch to fix ecpg core dump with nested structure pointer variable

Patch to fix ecpg core dump with nested structure pointer variable

From
Muhammad Usama
Date:
Hi

I have bumped in the segmentation fault in ecpg when using pointer to nested structure variable.

ecpg crash.pgc 
Segmentation fault: 11

Please see the attached patch for the fix and test case to reproduce the scenario.


Thanks
Regards
Muhammad Usama
Attachment

Re: Patch to fix ecpg core dump with nested structure pointer variable

From
Michael Meskes
Date:
> I have bumped in the segmentation fault in ecpg when using pointer to
> nested structure variable.
> ...
> Please see the attached patch for the fix and test case to reproduce the
> scenario.

Thanks for spotting and fixing this. Patch committed to git.

Michael
--
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
Jabber: michael.meskes at gmail dot com
VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL