Uh oh!
There was an error while loading. Please reload this page.
gh-108253: Fix bug in func version cache - #108296
Conversation
When a function object changed its version, a stale pointer might remain in the cache.
alex
commented
Aug 23, 2023
This PR introduces a use of uninitialized memory.
This was detected by OSS-Fuzz: https://oss-fuzz.com/testcase-detail/5086904889245696 |
gvanrossum
commented
Aug 23, 2023
Interesting, since it also definitely fixed a case of free-after-use. I will try to understand the report. |
gvanrossum
commented
Aug 23, 2023
Ah, I was over-zealous. That is the one place where |
alex
commented
Aug 23, 2023
Thanks! |
gvanrossum
commented
Aug 23, 2023
This is a great service! Surprised though that address-sanitizer didn't catch this. |
alex
commented
Aug 23, 2023
ASAN doesn't catch unitialized memory, only MSAN does. (And MSAN is kind of a pain in the neck to setup.) |
llooFlashooll
commented
Oct 29, 2023
Dear Alex @alex , Could you please give me an access to this issue? I am a security Ph.D. student, and I am analyzing some issues to summarize some patterns. I would be very grateful if you could help me. Best regards, |
When a function object changed its version, a stale pointer might remain in the cache.
Now,
test_opcachejust fails when run with-Xuopsinstead of accessing freed memory. This fixesgh-108253.