3 ms·
NoVT: Eliminating C++ Virtual Calls to Mitigate Vtable Hijacking
- rurban 6y agohttps://github.com/novt-vtable-less-compiler/novt-llvm https://github.com/novt-vtable-less-compiler/novt-llvm But instead of switch tables I would use the standard smalltalk jit approach of linear search of methods, a static PIC method cache. Just add all the cases with the most likely methods at the front.