diff options
author | Philipp Stephani <phst@google.com> | 2021-04-10 21:21:08 +0200 |
---|---|---|
committer | Philipp Stephani <phst@google.com> | 2021-04-10 23:04:04 +0200 |
commit | 2db03e3e53af3ce5c87f64d163ab2be96aee2c0f (patch) | |
tree | 24d592b096cc8432325834ada19a9cf249309d64 | |
parent | 496a46b32db9a3c32a846b8a3c872891303a1ec4 (diff) | |
download | emacs-2db03e3e53af3ce5c87f64d163ab2be96aee2c0f.tar.gz |
* src/emacs.c (load_seccomp): Add a useful assertion.
-rw-r--r-- | src/emacs.c | 1 |
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) emacs_perror ("read"); goto out; } + eassert (read <= SIZE_MAX); if (read != size) { fprintf (stderr, |