
31 Aug
2017
31 Aug
'17
12:42 a.m.
Reported-by: Coverity (CID: 152888) Signed-off-by: Joe Hershberger joe.hershberger@ni.com ---
net/nfs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/nfs.h b/net/nfs.h index 70a1a6d..a773cfb 100644 --- a/net/nfs.h +++ b/net/nfs.h @@ -59,7 +59,7 @@ enum rpc_accept_stat {
struct rpc_t { union { - uint8_t data[2048]; + uint8_t data[NFS_READ_SIZE + 6 * sizeof(uint32_t)]; struct { uint32_t id; uint32_t type; @@ -76,7 +76,7 @@ struct rpc_t { uint32_t verifier; uint32_t v2; uint32_t astatus; - uint32_t data[NFS_READ_SIZE]; + uint32_t data[NFS_READ_SIZE / sizeof(uint32_t)]; } reply; } u; } __attribute__((packed));
--
1.7.11.5