| commit | 90c28844c1c730ed05b214cf88e218f9652cf9cc | [log] [tgz] |
|---|---|---|
| author | Fabio D'Urso <fdurso@google.com> | Mon Dec 29 18:37:48 2025 +0100 |
| committer | Copybara-Service <copybara-worker@google.com> | Mon Dec 29 09:40:30 2025 -0800 |
| tree | 582399188d3836a5ecf0e887e0df9ab4c1d340a5 | |
| parent | 16b34d18d857102cb54ce183b0e3f7d285b6cfad [diff] |
[scudo] Use setenv instead of putenv in ScudoCombinedTest.ZeroOnDeallocEnabledAndFlag (#173423) This solves a stack-use-after-scope reported by AddressSanitizer within the unsetenv call at end of the test, due to the "Options" buffer, that we allocate on the stack, having already gone out of scope. Unlike putenv, which stores the pointer to the passed string directly in the environment, setenv creates an internal copy. GitOrigin-RevId: 5c19f77a7e0c4b35c0efb511a7d9e2e436335e61