Re: [sqlsmith] Crash on GUC serialization

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: [sqlsmith] Crash on GUC serialization
Дата
Msg-id CAB7nPqTEEv_9BfddQwZqw7BWfVGRoNQx9EBTZCTnxdTMZ1C-jw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [sqlsmith] Crash on GUC serialization  (Andreas Seltenreich <seltenreich@gmx.de>)
Список pgsql-hackers
On Sat, Nov 19, 2016 at 9:51 AM, Andreas Seltenreich <seltenreich@gmx.de> wrote:
> Michael Paquier writes:
>
>> [2. text/plain; fix-guc-string-eval.patch]
>
> I'm afraid taking care of the length computation is not sufficient.
> ISTM like it'll still try to serialize the NULL pointer later on in
> serialize_variable:
>
> ,----[ guc.c:9108 ]
> | case PGC_STRING:
> |     {
> |       struct config_string *conf = (struct config_string *) gconf;
> |       do_serialize(destptr, maxbytes, "%s", *conf->variable);
> `----

Hm, yes. Using an empty string strikes as being the best match.
--
Michael

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Douglas Doole
Дата:
Сообщение: Re: possible optimizations - pushing filter before aggregation
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: [BUG?] pg_event_trigger_ddl_commands() error with ALTER TEXT SEARCH CONFIGURATION