Jetpack/kernel/nvidia/drivers/platform/tegra/bad.c
dchvs 31faf4d851 cti_kernel: Add CTI sources
Elroy L4T r32.4.4 – JetPack 4.4.1
2021-03-15 20:15:11 -06:00

16 lines
283 B
C

#include <linux/module.h>
#include <linux/random.h>
#include <linux/string.h>
int __init bad_access(void)
{
static char source[] = "Twenty characters!!!";
char dest[10];
strncpy(dest, source, strlen(source));
pr_err("%s\n", dest);
return 0;
}
module_init(bad_access);