1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-15 07:41:09 -08:00

* src/emacs.c (load_seccomp): Add a useful assertion.

This commit is contained in:
Philipp Stephani 2021-04-10 21:21:08 +02:00
parent 496a46b32d
commit 2db03e3e53

View file

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