Problem with autocomplete
Problem with autocomplete
От:
Andreas Pflug <pgadmin@pse-consulting.de>
Дата:
When triggering autocomplete on spaces (e.g. empty query window), a memory damage will be triggered. If ignored, the full keyword listbox will popup. Happens with VC6, not gtk. Regards, Andreas
Re: Problem with autocomplete
> When triggering autocomplete on spaces (e.g. empty query > window), a memory damage will be triggered. If ignored, the > full keyword listbox will popup. > Happens with VC6, not gtk. Apologies for the delay in dealing with this, been way too busy. Attached is a fix. A buffer in _complete_from_list() wasn't allocaed with enough space for the terminating NULL. I've fixed a similar issue in complete_create_command - I wasn't able to trigger it, but anyway. It really should hapen on gtk as well - most likely just luck that it didn't corrupt anything needed. //Magnus
Re: Problem with autocomplete
От:
"Dave Page" <dpage@vale-housing.co.uk>
Дата:
Thanks, patch applied. Regards, Dave > -----Original Message----- > From: pgadmin-hackers-owner@postgresql.org > [mailto:pgadmin-hackers-owner@postgresql.org] On Behalf Of > Magnus Hagander > Sent: 19 June 2006 11:39 > To: pgadmin-hackers > Cc: Andreas Pflug > Subject: Re: [pgadmin-hackers] Problem with autocomplete > > > When triggering autocomplete on spaces (e.g. empty query > > window), a memory damage will be triggered. If ignored, the > > full keyword listbox will popup. > > Happens with VC6, not gtk. > > Apologies for the delay in dealing with this, been way too busy. > Attached is a fix. A buffer in _complete_from_list() wasn't allocaed > with enough space for the terminating NULL. I've fixed a similar issue > in complete_create_command - I wasn't able to trigger it, but anyway. > > It really should hapen on gtk as well - most likely just luck that it > didn't corrupt anything needed. > > //Magnus >