From 2db03e3e53af3ce5c87f64d163ab2be96aee2c0f Mon Sep 17 00:00:00 2001 From: Philipp Stephani Date: Sat, 10 Apr 2021 21:21:08 +0200 Subject: [PATCH] * src/emacs.c (load_seccomp): Add a useful assertion. --- src/emacs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/emacs.c b/src/emacs.c index 1fecf1fa4b4..92f6bfe636f 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -1060,6 +1060,7 @@ load_seccomp (const char *file) emacs_perror ("read"); goto out; } + eassert (read <= SIZE_MAX); if (read != size) { fprintf (stderr, -- 2.39.2