]> git.ipfire.org Git - thirdparty/systemd.git/commit
Introduce _cleanup_(strbuf_cleanupp) and use it to fix null deref on error
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 9 May 2018 23:16:03 +0000 (01:16 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 9 May 2018 23:36:50 +0000 (01:36 +0200)
commitf201daec89336833452a4d9fe3252c7755fc4e79
treecda6aa5d5f33db5474ffd2338129540a3f22a9d1
parentdb983479afdb0daddcb1cafcd609f4bce23fc993
Introduce _cleanup_(strbuf_cleanupp) and use it to fix null deref on error

catalog_update() would call strbuf_cleanup(NULL) on allocation error.
CID #1390928.
src/basic/strbuf.h
src/journal/catalog.c
src/journal/test-catalog.c
src/test/test-strbuf.c