Suhas Athani has uploaded this change for review. (
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1251377?usp=email )
Change subject: Fix Coverity-651244 NEGATIVE_RETURNS in fs_reclaim_complete
......................................................................
Fix Coverity-651244 NEGATIVE_RETURNS in fs_reclaim_complete
- Handle negative returns from fs_make_path() in fs_reclaim_complete()
before indexing path.
- Replaces assert(dstpos > 0), which is compiled out under NDEBUG and
does not prevent the underflow Coverity flagged (CID 651244).
Change-Id: Ied0cd524c145890244829a0900e5efe5316d5460
Signed-off-by: Suhas Athani <Suhas.Athani(a)ibm.com>
---
M src/SAL/recovery/recovery_fs.c
1 file changed, 6 insertions(+), 1 deletion(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/77/1251377/1
--
To view, visit
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1251377?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: Ied0cd524c145890244829a0900e5efe5316d5460
Gerrit-Change-Number: 1251377
Gerrit-PatchSet: 1
Gerrit-Owner: Suhas Athani <Suhas.Athani(a)ibm.com>