StackGuard: Automatic Adaptive Detection and Prevention of Buffer-overflow Attacks