projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
496a46b
)
* src/emacs.c (load_seccomp): Add a useful assertion.
author
Philipp Stephani
<phst@google.com>
Sat, 10 Apr 2021 19:21:08 +0000
(21:21 +0200)
committer
Philipp Stephani
<phst@google.com>
Sat, 10 Apr 2021 21:04:04 +0000
(23:04 +0200)
src/emacs.c
patch
|
blob
|
history
diff --git
a/src/emacs.c
b/src/emacs.c
index 1fecf1fa4b49fd990687bd088f022422ce89a622..92f6bfe636f4b0179d4acc4a67efdd99c580c0e2 100644
(file)
--- 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,