projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56e8d96
)
* src/emacs.c (read_full): Add a few assertions.
author
Philipp Stephani
<phst@google.com>
Mon, 14 Dec 2020 20:25:11 +0000
(21:25 +0100)
committer
Philipp Stephani
<phst@google.com>
Sat, 10 Apr 2021 21:41:52 +0000
(23:41 +0200)
src/emacs.c
patch
|
blob
|
history
diff --git
a/src/emacs.c
b/src/emacs.c
index 92f6bfe636f4b0179d4acc4a67efdd99c580c0e2..9d7b21cc76a28bfcbab71e3a1e18acee39a12848 100644
(file)
--- a/
src/emacs.c
+++ b/
src/emacs.c
@@
-973,6
+973,9
@@
emacs_seccomp (unsigned int operation, unsigned int flags, void *args)
static ptrdiff_t
read_full (int fd, void *buffer, ptrdiff_t size)
{
+ eassert (0 <= fd);
+ eassert (buffer != NULL);
+ eassert (0 <= size);
enum
{
/* See MAX_RW_COUNT in sysdep.c. */