aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/package/libseccomp/fix-export-oob-read.patch
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-20 03:14:11 +0900
committerOphestra <cat@gensokyo.uk>2026-05-20 03:33:15 +0900
commitef414ab01a28b61ef01766c3dd28ed2342f5ab75 (patch)
tree314a8f471c8c052da0936549ecac2d052f52932a /internal/rosa/package/libseccomp/fix-export-oob-read.patch
parent96abf266dd8bbbb4ea65c74a3f84f2461a6021a7 (diff)
internal/rosa/package: migrate many libraries
This also adds more string helpers. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/package/libseccomp/fix-export-oob-read.patch')
-rw-r--r--internal/rosa/package/libseccomp/fix-export-oob-read.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/internal/rosa/package/libseccomp/fix-export-oob-read.patch b/internal/rosa/package/libseccomp/fix-export-oob-read.patch
new file mode 100644
index 00000000..c399dcc5
--- /dev/null
+++ b/internal/rosa/package/libseccomp/fix-export-oob-read.patch
@@ -0,0 +1,13 @@
+diff --git a/src/api.c b/src/api.c
+index adccef3..65a277a 100644
+--- a/src/api.c
++++ b/src/api.c
+@@ -786,7 +786,7 @@ API int seccomp_export_bpf_mem(const scmp_filter_ctx ctx, void *buf,
+ if (BPF_PGM_SIZE(program) > *len)
+ rc = _rc_filter(-ERANGE);
+ else
+- memcpy(buf, program->blks, *len);
++ memcpy(buf, program->blks, BPF_PGM_SIZE(program));
+ }
+ *len = BPF_PGM_SIZE(program);
+