From a96fe7203eddd190fc8c04bfa4cbe1442d13b8cc Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 20 Nov 2017 02:40:35 +0100 Subject: [PATCH] This commit specifies the integer width explicitly to match `result_header_ext` etc. also, can someone explain to me why `send_status_and_crc` does not need to set `_pad` to prevent leaking stack memory in the responses? --- qrexec-lib/libqubes-rpc-filecopy.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/qrexec-lib/libqubes-rpc-filecopy.h b/qrexec-lib/libqubes-rpc-filecopy.h index a0732b7..2b18b39 100644 --- a/qrexec-lib/libqubes-rpc-filecopy.h +++ b/qrexec-lib/libqubes-rpc-filecopy.h @@ -35,13 +35,13 @@ #include struct file_header { - unsigned int namelen; - unsigned int mode; - unsigned long long filelen; - unsigned int atime; - unsigned int atime_nsec; - unsigned int mtime; - unsigned int mtime_nsec; + uint32_t namelen; + uint32_t mode; + uint64_t filelen; + uint32_t atime; + uint32_t atime_nsec; + uint32_t mtime; + uint32_t mtime_nsec; }; struct result_header {