by quacj · 8y ago · 0 comments
How is that a security issue? It's in the same process.
Could the subroutine troll through memory and find it? Yes, but it would be orders of magnitude harder than having that pointer in a register.
Better example is if you are using 64 bit ints in registers as security tokens. Those should be zeroed after use and the compiler needs to not accidentally optimize away zeroing them.
I don't quite see how an attacker would take advantage of this is a real-world scenario.
Could probably reproduce from upstream Yocto distro and the free version of Qt.
Much larger attack surfaces to worry about like their craptastic security around USBs that farmers stick in to read maps.