1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/samples/landlock
Zichen Xie 078bf9438a
samples/landlock: Fix possible NULL dereference in parse_path()
malloc() may return NULL, leading to NULL dereference.  Add a NULL
check.

Fixes: ba84b0bf5a ("samples/landlock: Add a sandbox manager example")
Signed-off-by: Zichen Xie <zichenxie0106@gmail.com>
Link: https://lore.kernel.org/r/20241128032955.11711-1-zichenxie0106@gmail.com
[mic: Simplify fix]
Signed-off-by: Mickaël Salaün <mic@digikod.net>
2025-01-10 12:12:40 +01:00
..
.gitignore samples/landlock: Add a sandbox manager example 2021-04-22 12:22:11 -07:00
Makefile samples/landlock: Add a sandbox manager example 2021-04-22 12:22:11 -07:00
sandboxer.c samples/landlock: Fix possible NULL dereference in parse_path() 2025-01-10 12:12:40 +01:00