Patch to fix ecpg core dump with nested structure pointer variable

From: Muhammad Usama <m(dot)usama(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Patch to fix ecpg core dump with nested structure pointer variable
Date: 2012-11-29 13:36:20
Message-ID: CAEJvTzWNaXfMkkm6G6mLivGL5gBpyErrGrn=mVWtnLXNCmuJ+g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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 Content-Type Size
crash.pgc application/octet-stream 672 bytes
ecpg_crash.patch application/octet-stream 790 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2012-11-29 13:50:57 [PATCH] make -jN check fails / unset MAKEFLAGS in pg_regress.c
Previous Message Heikki Linnakangas 2012-11-29 13:25:22 Re: WIP: index support for regexp search