Page MenuHomePhabricator

[compiler-rt] Enhance function padding detection for function interception
ClosedPublic

Authored by etienneb on Jul 11 2016, 10:37 PM.

Details

Summary

Many CRT (64-bits) functions contains a "hint-nop". The current padding
detection is not able to recognize the 10-bytes padding and the HotPatch
hooking technique cannot be used.

Other patterns may be discover and may be added later.

Diff Detail

Event Timeline

etienneb updated this revision to Diff 63639.Jul 11 2016, 10:37 PM
etienneb updated this revision to Diff 63640.
etienneb retitled this revision from to [compiler-rt] Enhance funcion padding detection for function interception.
etienneb updated this object.
etienneb added a reviewer: rnk.

nits

etienneb retitled this revision from [compiler-rt] Enhance funcion padding detection for function interception to [compiler-rt] Enhance function padding detection for function interception.Jul 11 2016, 10:40 PM
rnk accepted this revision.Jul 12 2016, 8:28 AM
rnk edited edge metadata.

lgtm

This revision is now accepted and ready to land.Jul 12 2016, 8:28 AM
etienneb closed this revision.Jul 12 2016, 8:40 AM