]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/emacs.c (load_seccomp): Add a useful assertion.
authorPhilipp Stephani <phst@google.com>
Sat, 10 Apr 2021 19:21:08 +0000 (21:21 +0200)
committerPhilipp Stephani <phst@google.com>
Sat, 10 Apr 2021 21:04:04 +0000 (23:04 +0200)
src/emacs.c

index 1fecf1fa4b49fd990687bd088f022422ce89a622..92f6bfe636f4b0179d4acc4a67efdd99c580c0e2 100644 (file)
@@ -1060,6 +1060,7 @@ load_seccomp (const char *file)
       emacs_perror ("read");
       goto out;
     }
+  eassert (read <= SIZE_MAX);
   if (read != size)
     {
       fprintf (stderr,