[PATCH] Code refactoring related to -fsanitize=use-after-scope

Поиск
Список
Период
Сортировка
От Martin Liška
Тема [PATCH] Code refactoring related to -fsanitize=use-after-scope
Дата
Msg-id 56C1D498.4020202@suse.cz
обсуждение исходный текст
Ответы Re: [PATCH] Code refactoring related to -fsanitize=use-after-scope  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
Hello.

I've been currently working on support of -sanitize=use-after-scope in the GCC compiler and
I decided to use postgresql as my test-case. The sanitation poisons every stack variable at the
very beginning of a function, unpoisons a variable at the beginning of scope definition and finally
poisons the variable again at the end of scope.

Following patch fixes issues seen by the sanitizer. Hope it's acceptable?
With the patch applied, ASAN (with the new sanitization) works fine.

Thanks,
Martin

Вложения

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

Предыдущее
От: Petr Jelinek
Дата:
Сообщение: Re: WIP: Failover Slots
Следующее
От: Bruce Momjian
Дата:
Сообщение: New pg_upgrade data directory inside old one?