]> git.ipfire.org Git - thirdparty/iproute2.git/commit
lib: names: check calloc return value in db_names_alloc
authorDenis Kirjanov <kirjanov@gmail.com>
Wed, 13 Nov 2024 10:53:49 +0000 (13:53 +0300)
committerStephen Hemminger <stephen@networkplumber.org>
Sun, 17 Nov 2024 18:11:58 +0000 (10:11 -0800)
commit225f74761b091e51444cf1f9686547f3c42e44b3
tree7bb6c02e090691169f73edeaee505146d415cb56
parent929b29f01152f0abcb8cbaa7ff4f9b17ccd361af
lib: names: check calloc return value in db_names_alloc

db_names_load() may crash since it touches the
hash member. Fix it by checking the return value

Signed-off-by: Denis Kirjanov <kirjanov@gmail.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
lib/names.c