The following commit has been merged in the master branch:
commit 3bf2a275665e0d2a5145e94358618a6dc2f6089d
Author: Benjamin Kaduk <[email protected]>
Date:   Sun Aug 11 15:57:05 2024 -0700

    bosserver: use normal asprintf idiom
    
    We generally tend to explicitly NULL out the buffer argument if
    asprintf() returns failure, since it is not guaranteed to have done
    so itself.  It is even less clear whether setting the buffer argument
    to NULL ourselves before calling asprintf() will be untouched in all
    possible failures, so re-zero it after failed calls just to be sure
    we don't try to free garbage later.
    
    Change-Id: Ie8995472aeadb8043f5e43f4e6d197a7be1363e0
    Reviewed-on: https://gerrit.openafs.org/15832
    Tested-by: BuildBot <[email protected]>
    Reviewed-by: Michael Meffie <[email protected]>

 src/bozo/bosserver.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

-- 
OpenAFS Master Repository
_______________________________________________
OpenAFS-cvs mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-cvs

Reply via email to