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.
What you really need to do is figure out which instruction was executing and increment RIP appropriately.