__chk_fail

Name

__chk_fail -- terminate a function in case of buffer overflow

Synopsis

#include <libc.h>

void __chk_fail(void);

Description

The interface __chk_fail() shall abort the function that called it with a message that a buffer overflow has been detected. The program that called the function shall then exit.

Application Usage (informative)

The interface __chk_fail() does not check for a buffer overflow itself. It merely reports one when invoked.