Cull the examples folder

This commit is contained in:
Justine Tunney 2023-10-11 21:38:27 -07:00
parent 3a1f887928
commit f7343319cc
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
44 changed files with 47 additions and 1963 deletions

View file

@ -1059,11 +1059,15 @@ privileged size_t kvsnprintf(char *b, size_t n, const char *fmt, va_list v) {
privileged void kvprintf(const char *fmt, va_list v) {
#pragma GCC push_options
#pragma GCC diagnostic ignored "-Walloca-larger-than="
long size = __get_safe_size(8000, 3000);
if (size < 80) {
klog(STACK_ERROR, sizeof(STACK_ERROR) - 1);
return;
}
long size = 3000;
/* long size = __get_safe_size(8000, 3000); */
/* if (size < 80) { */
/* asm("int3"); */
/* klog(STACK_ERROR, sizeof(STACK_ERROR) - 1); */
/* return; */
/* } */
char *buf = alloca(size);
CheckLargeStackAllocation(buf, size);
#pragma GCC pop_options