From 810abed9ea7a5352a52ff7b180754a90495f2928 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 26 Oct 2010 09:13:13 +0000 Subject: [PATCH] Fix NULL pointer dereference for too large MDA error path Replace dereference of NULL vg with passed vgname to the function _vg_read_raw_area() in the error path for too large MDA. --- WHATS_NEW | 1 + lib/format_text/format-text.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW b/WHATS_NEW index 22ad56277..f4312d827 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.76 =================================== + Fix NULL pointer dereference for too large MDA error path in _vg_read_raw_area(). Use static for internal _align_chunk() and _new_chunk() from pool-fast.c. Fix vgchange to process -a, --refresh, --monitor and --poll like lvchange. Add lvm2app functions to query any pv, vg, or lv property / report field. diff --git a/lib/format_text/format-text.c b/lib/format_text/format-text.c index eee01147b..0102a158a 100644 --- a/lib/format_text/format-text.c +++ b/lib/format_text/format-text.c @@ -507,7 +507,7 @@ static struct volume_group *_vg_read_raw_area(struct format_instance *fid, if (wrap > rlocn->offset) { log_error("VG %s metadata too large for circular buffer", - vg->name); + vgname); goto out; }