Jehan-Guillaume de Rorthais <[email protected]> writes:
> One of our customer hit a sigsev with ecpg lately. Their team created a simple
> scenario and point us the origin of the crash in ECPG code. The credit goes to
> them (iMSA) for that work.
> ...
> If setting "$$.type_sizeof = NULL;" is legit for unions (I didn't try to wrap
> my head around this code), maybe this change should be:
> - ne->struct_sizeof = struct_sizeof;
> + ne->struct_sizeof = struct_sizeof ? mm_strdup(struct_sizeof):NULL;
Yeah, I agree. Will fix, thanks for the report!
regards, tom lane