[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 2db03e3 2/2: * src/emacs.c (load_seccomp): Add a useful assertion
From: |
Philipp Stephani |
Subject: |
master 2db03e3 2/2: * src/emacs.c (load_seccomp): Add a useful assertion. |
Date: |
Sat, 10 Apr 2021 17:04:56 -0400 (EDT) |
branch: master
commit 2db03e3e53af3ce5c87f64d163ab2be96aee2c0f
Author: Philipp Stephani <phst@google.com>
Commit: Philipp Stephani <phst@google.com>
* src/emacs.c (load_seccomp): Add a useful assertion.
---
src/emacs.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/emacs.c b/src/emacs.c
index 1fecf1f..92f6bfe 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,