shared: reject empty attachment path

This commit is contained in:
Frantisek Sumsal
2023-05-03 10:09:53 +02:00
parent 1febf60f9d
commit 740831076c
2 changed files with 14 additions and 0 deletions
+3
View File
@@ -467,6 +467,9 @@ int bpf_program_deserialize_attachment(const char *v, FDSet *fds, BPFProgram **b
return at;
/* The rest is the path */
if (isempty(v))
return -EINVAL;
l = cunescape(v, 0, &unescaped);
if (l < 0)
return l;