mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
Add __stack_chk_fail to mini-os and __sprintf_chk __fprintf_chk to newlib, to cope with ocaml runtimes compiled with -fstack-protector. From: "George S. Coker, II" <gscoker@alpha.ncsc.mil> Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
9 lines
130 B
C
9 lines
130 B
C
#include <kernel.h>
|
|
#include <console.h>
|
|
|
|
void __stack_chk_fail(void)
|
|
{
|
|
printk("stack smashing detected\n");
|
|
do_exit();
|
|
}
|