clear message structure before filling it in

This change clears the message structure before filling it in. This prevents uninitialized stack data from vfs to leak to the other endpoint.
This commit is contained in:
Ilja van Sprundel 2019-10-03 15:39:37 +02:00 committed by GitHub
parent c83104101c
commit bf0147da26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -187,6 +187,7 @@ int req_create(
panic("req_create: cpf_grant_direct failed");
/* Fill in request message */
memset(&m, 0, sizeof(m));
m.m_type = REQ_CREATE;
m.m_vfs_fs_create.inode = inode_nr;
m.m_vfs_fs_create.mode = omode;