Re:Why is there a “V” in SIGSEGV Segmentation Fault?
by aaron_m04 on Thursday June 18, 2020 @04:52PM
(#23567879)
Is a larger slide and RIP increment needed then? Or can these never be made large enough?
[ Parent
| on HN ]
Re:Why is there a “V” in SIGSEGV Segmentation Fault?
by tonyarkles on Thursday June 18, 2020 @04:55PM
(#23567916)
The reason this worked in this example is because they knew which line would cause the SEGV. In the general case where you're trying to catch arbitrary segfaults, you'd need a slide in between every instruction if you wanted to do a fixed RIP increment.
What you really need to do is figure out which instruction was executing and increment RIP appropriately.