* src/emacs.c (read_full): Add a few assertions.
This commit is contained in:
parent
56e8d969f5
commit
d6aa50f74c
1 changed files with 3 additions and 0 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Reference in a new issue