From: zkabelac@sourceware.org <zkabelac@sourceware.org>
To: lvm-devel@redhat.com
Subject: LVM2 ./WHATS_NEW_DM libdm/libdm-report.c
Date: 10 Feb 2012 14:00:08 -0000 [thread overview]
Message-ID: <20120210140008.29465.qmail@sourceware.org> (raw)
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2012-02-10 14:00:08
Modified files:
. : WHATS_NEW_DM
libdm : libdm-report.c
Log message:
Do not crash for NULL sort_key
Guard against NULL pointer for sort_key and let it behave like an empty
string would have been passed in (i.e. no key).
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW_DM.diff?cvsroot=lvm2&r1=1.545&r2=1.546
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/libdm-report.c.diff?cvsroot=lvm2&r1=1.46&r2=1.47
--- LVM2/WHATS_NEW_DM 2012/02/10 13:56:19 1.545
+++ LVM2/WHATS_NEW_DM 2012/02/10 14:00:07 1.546
@@ -1,5 +1,6 @@
Version 1.02.70 -
===================================
+ Do not crash for dm_report_init() sort_key == NULL and behave like "".
Return error for failing allocation in dm_asprintf().
Add missing test for failing allocation in dm_realloc() code.
Add test for memory allocation failures in regex matcher code.
--- LVM2/libdm/libdm-report.c 2011/08/04 14:30:52 1.46
+++ LVM2/libdm/libdm-report.c 2012/02/10 14:00:07 1.47
@@ -541,6 +541,9 @@
const char *ws; /* Word start */
const char *we = keys; /* Word end */
+ if (!keys)
+ return 1;
+
while (*we) {
/* Allow consecutive commas */
while (*we && *we == ',')
next reply other threads:[~2012-02-10 14:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-10 14:00 zkabelac [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-06-12 19:49 LVM2 ./WHATS_NEW_DM libdm/libdm-report.c agk
2011-01-25 21:51 zkabelac
2010-11-19 13:17 agk
2010-11-01 13:31 prajnoha
2010-01-07 14:30 zkabelac
2009-01-10 3:01 agk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120210140008.29465.qmail@sourceware.org \
--to=zkabelac@sourceware.org \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.