From: agk@sourceware.org
To: dm-cvs@sourceware.org, dm-devel@redhat.com
Subject: device-mapper ./WHATS_NEW dmeventd/dmeventd.c ...
Date: 15 Jan 2007 22:05:51 -0000 [thread overview]
Message-ID: <20070115220551.20713.qmail@sourceware.org> (raw)
CVSROOT: /cvs/dm
Module name: device-mapper
Changes by: agk@sourceware.org 2007-01-15 22:05:51
Modified files:
. : WHATS_NEW
dmeventd : dmeventd.c
dmsetup : dmsetup.c
Log message:
Fix a malloc error path in dmsetup message.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/WHATS_NEW.diff?cvsroot=dm&r1=1.147&r2=1.148
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/dmeventd/dmeventd.c.diff?cvsroot=dm&r1=1.32&r2=1.33
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/dmsetup/dmsetup.c.diff?cvsroot=dm&r1=1.74&r2=1.75
--- device-mapper/WHATS_NEW 2007/01/15 18:21:01 1.147
+++ device-mapper/WHATS_NEW 2007/01/15 22:05:50 1.148
@@ -1,5 +1,6 @@
Version 1.02.15 -
===================================
+ Fix a malloc error path in dmsetup message.
More libdevmapper-event interface changes and fixes.
Rename dm_saprintf() to dm_asprintf().
Report error if NULL pointer is supplied to dm_strdup_aux().
--- device-mapper/dmeventd/dmeventd.c 2007/01/15 19:47:48 1.32
+++ device-mapper/dmeventd/dmeventd.c 2007/01/15 22:05:50 1.33
@@ -29,22 +29,11 @@
#include <dlfcn.h>
#include <errno.h>
-#include <fcntl.h>
-#include <libgen.h>
#include <pthread.h>
-#include <signal.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include <sys/file.h>
-#include <sys/mman.h>
-#include <sys/types.h>
-#include <sys/stat.h>
#include <sys/wait.h>
-#include <sys/resource.h>
#include <unistd.h>
-#include <stdarg.h>
#include <arpa/inet.h> /* for htonl, ntohl */
#ifdef linux
--- device-mapper/dmsetup/dmsetup.c 2006/10/19 15:34:50 1.74
+++ device-mapper/dmsetup/dmsetup.c 2007/01/15 22:05:50 1.75
@@ -533,7 +533,11 @@
for (i = 0; i < argc; i++)
sz += strlen(argv[i]) + 1;
- str = dm_malloc(sz);
+ if (!(str = dm_malloc(sz))) {
+ err("message string allocation failed");
+ goto out;
+ }
+
memset(str, 0, sz);
for (i = 0; i < argc; i++) {
next reply other threads:[~2007-01-15 22:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-15 22:05 agk [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-01-23 17:38 device-mapper ./WHATS_NEW dmeventd/dmeventd.c agk
2007-01-25 14:16 agk
2007-02-02 17:08 agk
2007-03-16 14:36 agk
2007-07-24 14:16 meyering
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=20070115220551.20713.qmail@sourceware.org \
--to=agk@sourceware.org \
--cc=dm-cvs@sourceware.org \
--cc=dm-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.