aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPhilipp Stephani2021-04-10 21:21:08 +0200
committerPhilipp Stephani2021-04-10 23:04:04 +0200
commit2db03e3e53af3ce5c87f64d163ab2be96aee2c0f (patch)
tree24d592b096cc8432325834ada19a9cf249309d64 /src
parent496a46b32db9a3c32a846b8a3c872891303a1ec4 (diff)
downloademacs-2db03e3e53af3ce5c87f64d163ab2be96aee2c0f.tar.gz
emacs-2db03e3e53af3ce5c87f64d163ab2be96aee2c0f.zip
* src/emacs.c (load_seccomp): Add a useful assertion.
Diffstat (limited to 'src')
-rw-r--r--src/emacs.c1
1 files changed, 1 insertions, 0 deletions
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)
1060 emacs_perror ("read"); 1060 emacs_perror ("read");
1061 goto out; 1061 goto out;
1062 } 1062 }
1063 eassert (read <= SIZE_MAX);
1063 if (read != size) 1064 if (read != size)
1064 { 1065 {
1065 fprintf (stderr, 1066 fprintf (stderr,