From 7837722a09c08957af93055062cecfd9c3ea8b14 Mon Sep 17 00:00:00 2001 From: Alice Frosi Date: Fri, 8 Sep 2023 08:44:30 -0400 Subject: gluten: throw an error if the offset is seccomp but the request is empty --- common/gluten.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'common') diff --git a/common/gluten.h b/common/gluten.h index 1f06221..e80916a 100644 --- a/common/gluten.h +++ b/common/gluten.h @@ -357,8 +357,10 @@ static inline const void *gluten_ptr(const struct seccomp_data *s, return NULL; } - if (x.type == OFFSET_SECCOMP_DATA && s == NULL) + if (x.type == OFFSET_SECCOMP_DATA && s == NULL) { + err(" seccomp data is empty"); return NULL; + } switch (x.type) { case OFFSET_DATA: -- cgit v1.2.3