pinebuds/platform/cmsis/stack_protector.c
Ben V. Brown 75381150fd Formatting
Formatting Pass 1

Lots of fixups to adding stdint and stdbool all over the place

Formatting Pass 2
Formatting Pass 3
Formatting Pass 4

Update app_bt_stream.cpp
2023-02-02 07:56:49 +11:00

15 lines
369 B
C

#include <hal_trace.h>
#include <stdint.h>
#include <string.h>
uint32_t __stack_chk_guard = 0xdeadbeef;
void __attribute__((__constructor__)) __stack_chk_init(void) {
if (__stack_chk_guard != 0)
return;
}
void __attribute__((__noreturn__)) __stack_chk_fail(void) {
const char *msg = "*** stack smashing detected ***: terminated\n";
ASSERT(0, "%s", msg);
}