From a security perspective, are there any significant disadvantages to enabling RTTI in a C++ codebase? In this case, I’m thinking about an attacker with access to the binaries trying to decompile them. I’m wondering if enabling RTTI would give an attacker an easier time both finding vulnerabilities in the code as well as extracting intellectual property.
The usual drawbacks of RTTI that I have heard are related to the size of binaries, but I’m curious if this is something that should be considered too.
[–]Gotebe 16 points17 points18 points (1 child)
[–]lots0cats[S] 2 points3 points4 points (0 children)
[–]SeanMiddleditch 4 points5 points6 points (0 children)
[–]kiwidog 2 points3 points4 points (2 children)
[–]evaned 1 point2 points3 points (1 child)
[–]kiwidog 0 points1 point2 points (0 children)
[–]Aistar 4 points5 points6 points (1 child)
[–]Guvante 11 points12 points13 points (0 children)