Обсуждение: Problem with autocomplete

Поиск
Список
Период
Сортировка

Problem with autocomplete

От
Andreas Pflug
Дата:
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

От
"Magnus Hagander"
Дата:
> 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"
Дата:
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
>