From cb2006930ba7021d8ca0c0fa2ec3b2fd38027a6b Mon Sep 17 00:00:00 2001 From: orbisai0security Date: Wed, 22 Jul 2026 20:43:54 +0000 Subject: [PATCH] fix: V-003 security vulnerability Automated security fix generated by OrbisAI Security --- .../stack-buffer-overflow.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/learning-paths/servers-and-cloud-computing/exploiting-stack-buffer-overflow-aarch64/stack-buffer-overflow.c b/content/learning-paths/servers-and-cloud-computing/exploiting-stack-buffer-overflow-aarch64/stack-buffer-overflow.c index df46ff492b..b9f44047e7 100644 --- a/content/learning-paths/servers-and-cloud-computing/exploiting-stack-buffer-overflow-aarch64/stack-buffer-overflow.c +++ b/content/learning-paths/servers-and-cloud-computing/exploiting-stack-buffer-overflow-aarch64/stack-buffer-overflow.c @@ -1,9 +1,10 @@ #include +#include __attribute__((noinline)) char f(char *src) { char buffer[8]; - strcpy(buffer, src); + snprintf(buffer, sizeof(buffer), "%s", src); return buffer[2]; }