Advanced Code-reuse Attacks: A Novel Framework for JOP