aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPhilipp Stephani2020-12-14 21:25:11 +0100
committerPhilipp Stephani2021-04-10 23:41:52 +0200
commitd6aa50f74c65c96846c774cb8f949387bf07a9ed (patch)
tree266fa292615e3877fcde19cd3415951df6b8817b /src
parent56e8d969f545446c00a82af6f2e5bc7ad535a359 (diff)
downloademacs-d6aa50f74c65c96846c774cb8f949387bf07a9ed.tar.gz
emacs-d6aa50f74c65c96846c774cb8f949387bf07a9ed.zip
* src/emacs.c (read_full): Add a few assertions.
Diffstat (limited to 'src')
-rw-r--r--src/emacs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/emacs.c b/src/emacs.c
index 92f6bfe636f..9d7b21cc76a 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -973,6 +973,9 @@ emacs_seccomp (unsigned int operation, unsigned int flags, void *args)
973static ptrdiff_t 973static ptrdiff_t
974read_full (int fd, void *buffer, ptrdiff_t size) 974read_full (int fd, void *buffer, ptrdiff_t size)
975{ 975{
976 eassert (0 <= fd);
977 eassert (buffer != NULL);
978 eassert (0 <= size);
976 enum 979 enum
977 { 980 {
978 /* See MAX_RW_COUNT in sysdep.c. */ 981 /* See MAX_RW_COUNT in sysdep.c. */