Patch to fix ecpg core dump with nested structure pointer variable

Muhammad Usama <m.usama@gmail.com>

From: Muhammad Usama <m.usama@gmail.com>
To: pgsql-hackers@postgresql.org
Date: 2012-11-29T13:36:20Z
Lists: pgsql-hackers

Attachments

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