Xueqian Hu has uploaded this change for review. ( https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1225177?usp=email ) Change subject: Fix crash in NFS3 read when read_count is zero ...................................................................... Fix crash in NFS3 read when read_count is zero The crash happened because resok->data.iov was not initialized when read_count is 0. The code tried to access iov[0] but iov was NULL. We now initialize the iovec before checking if size is 0, ensuring iov always points to the iov0 field and preventing. Change-Id: I06f24b3e5c070a7515a24e492c713b5c9dec9ffd Signed-off-by: xueqian.hu <xh140312@outlook.com> --- M src/Protocols/NFS/nfs3_read.c 1 file changed, 9 insertions(+), 9 deletions(-) git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/77/1225177/1 -- To view, visit https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1225177?usp=email To unsubscribe, or for help writing mail filters, visit https://review.gerrithub.io/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: ffilz/nfs-ganesha Gerrit-Branch: next Gerrit-Change-Id: I06f24b3e5c070a7515a24e492c713b5c9dec9ffd Gerrit-Change-Number: 1225177 Gerrit-PatchSet: 1 Gerrit-Owner: Xueqian Hu <xh140312@outlook.com>