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