git: various: Fix -Wstringop-overread and -Wdangling-pointer warnings.

Matthew Dillon dillon at crater.dragonflybsd.org
Fri May 22 18:43:41 PDT 2026


commit bdbecb468706b0d4afd30f9aeb119c342f6f4e29
Author: Abdelkader Boudih <dragonflybsd at seuros.com>
Date:   Thu May 22 07:50:35 2025 +0000

    various: Fix -Wstringop-overread and -Wdangling-pointer warnings.
    
    Fix sizeof(&sum) vs sizeof(sum) bug in adventure save/restore.
    Fix strcmp() on non-NUL-terminated fgetln() buffer in libfetch.
    Suppress false positives in libefivar and libnvmm.

Summary of changes:
 games/adventure/save.c     |  4 ++--
 lib/libefivar/uefi-dplib.h | 11 +++++++++--
 lib/libfetch/http.c        |  4 ++--
 lib/libnvmm/libnvmm_x86.c  | 20 ++++++++++++++++++++
 4 files changed, 33 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bdbecb468706b0d4afd30f9aeb119c342f6f4e29


-- 
DragonFly BSD source repository


More information about the Commits mailing list