diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libpts/pts/pts_ima_event_list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libpts/pts/pts_ima_event_list.c b/src/libpts/pts/pts_ima_event_list.c index 9959fb3b3..9bff4654b 100644 --- a/src/libpts/pts/pts_ima_event_list.c +++ b/src/libpts/pts/pts_ima_event_list.c @@ -298,7 +298,7 @@ pts_ima_event_list_t* pts_ima_event_list_create(char *file) } /* read the 32 bit length of the file name in host order */ - if (read(fd, &name_len, 4) != 4) + if (read(fd, &name_len, 4) != 4 || name_len == UINT32_MAX) { error = "invalid filename field length"; break; |