The select
and pselect6
syscall handlers may read invalid memory
#2912
Labels
Type: Bug
Error or flaw producing unexpected results
Shadow's
select
andpselect6
syscall handlers read file descriptor sets as fixed-sizedfd_set
s for the read, write, and err fd lists, but the syscalls should actually read them as a file descriptor sets with a length derived fromnfds
.If the application uses a buffer smaller than the size of
fd_set
, shadow will read invalid memory. Most applications use glibc so this is unlikely to be an issue in most cases.The text was updated successfully, but these errors were encountered: