Towards Improved Mitigations For Two Attacks On Memory Safety