From: Philipp Stephani Date: Sat, 10 Apr 2021 19:21:08 +0000 (+0200) Subject: * src/emacs.c (load_seccomp): Add a useful assertion. X-Git-Tag: emacs-28.0.90~2924 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2db03e3e53af3ce5c87f64d163ab2be96aee2c0f;p=emacs.git * src/emacs.c (load_seccomp): Add a useful assertion. --- 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,