git: libutil: Fix a minor NULL deref issue in humanize_number()

Aaron LI aly at crater.dragonflybsd.org
Sat Jun 19 03:40:03 PDT 2021


commit 88b59fa59633f7b2abac3df68d3bc78f3c745c27
Author: Aaron LI <aly at aaronly.me>
Date:   Thu May 27 19:10:10 2021 +0800

    libutil: Fix a minor NULL deref issue in humanize_number()
    
    Modify buf after checking it's not NULL.  Although it's certainly a
    misuse to pass a NULL as buf but with len > 0, fix it FWIW.

Summary of changes:
 lib/libutil/humanize_number.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/88b59fa59633f7b2abac3df68d3bc78f3c745c27


-- 
DragonFly BSD source repository



More information about the Commits mailing list