PatchworkOS
Loading...
Searching...
No Matches
main.c
Go to the documentation of this file.
1
#include <
stdint.h
>
2
#include <
stdio.h
>
3
4
void
stack_overflow
(
void
)
5
{
6
uint8_t
buffer
[1024];
7
stack_overflow
();
8
}
9
10
int
main
(
void
)
11
{
12
printf
(
"Will now cause a stack overflow...\n"
);
13
stack_overflow
();
14
return
0;
15
}
buffer
EFI_PHYSICAL_ADDRESS buffer
Definition
mem.c:15
main
int main()
Definition
main.c:97
stack_overflow
void stack_overflow(void)
Definition
main.c:4
stdint.h
uint8_t
__UINT8_TYPE__ uint8_t
Definition
stdint.h:11
stdio.h
printf
_PUBLIC int printf(const char *_RESTRICT format,...)
Definition
printf.c:5
src
programs
stackoverflow
main.c
Generated by
1.9.8