* src/emacs.c (read_full): Add a few assertions.

This commit is contained in:
Philipp Stephani 2020-12-14 21:25:11 +01:00
parent 56e8d969f5
commit d6aa50f74c

View file

@ -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. */