[PATCH] Code refactoring related to -fsanitize=use-after-scope - Mailing list pgsql-hackers

From Martin Liška
Subject [PATCH] Code refactoring related to -fsanitize=use-after-scope
Date
Msg-id 56C1D498.4020202@suse.cz
Whole thread Raw
Responses Re: [PATCH] Code refactoring related to -fsanitize=use-after-scope
List 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

Attachment

pgsql-hackers by date:

Previous
From: Petr Jelinek
Date:
Subject: Re: WIP: Failover Slots
Next
From: Bruce Momjian
Date:
Subject: New pg_upgrade data directory inside old one?