Suhas Athani has uploaded this change for review. (
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1226626?usp=email )
Change subject: Fix potential buffer overflow in cidr_from_str (Coverity CID 638296)
......................................................................
Fix potential buffer overflow in cidr_from_str (Coverity CID 638296)
Fixes a buffer overflow in cidr_from_str by replacing strcpy with
strlcpy and adding input length checks. Returns an error if the
input address exceeds buffer size, ensuring safe string handling.
Change-Id: Ied39b85f62231cd2667aefd2ab5f344314241682
Signed-off-by: Suhas Athani <Suhas.Athani(a)ibm.com>
---
M src/support/ip_utils.c
1 file changed, 5 insertions(+), 1 deletion(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/26/1226626/1
--
To view, visit
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1226626?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: Ied39b85f62231cd2667aefd2ab5f344314241682
Gerrit-Change-Number: 1226626
Gerrit-PatchSet: 1
Gerrit-Owner: Suhas Athani <Suhas.Athani(a)ibm.com>