* device-mapper ./WHATS_NEW lib/mm/dbg_malloc.c
@ 2007-01-15 14:40 agk
0 siblings, 0 replies; 2+ messages in thread
From: agk @ 2007-01-15 14:40 UTC (permalink / raw)
To: dm-cvs, dm-devel
CVSROOT: /cvs/dm
Module name: device-mapper
Changes by: agk@sourceware.org 2007-01-15 14:39:12
Modified files:
. : WHATS_NEW
lib/mm : dbg_malloc.c
Log message:
Report error if NULL pointer supplied to dm_strdup_aux().
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/WHATS_NEW.diff?cvsroot=dm&r1=1.145&r2=1.146
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/lib/mm/dbg_malloc.c.diff?cvsroot=dm&r1=1.8&r2=1.9
--- device-mapper/WHATS_NEW 2007/01/12 20:22:11 1.145
+++ device-mapper/WHATS_NEW 2007/01/15 14:39:11 1.146
@@ -1,5 +1,6 @@
Version 1.02.15 -
===================================
+ Report error if NULL pointer is supplied to dm_strdup_aux().
Reinstate dm_event_get_registered_device.
Version 1.02.14 - 11th January 2007
--- device-mapper/lib/mm/dbg_malloc.c 2006/09/19 17:30:04 1.8
+++ device-mapper/lib/mm/dbg_malloc.c 2007/01/15 14:39:12 1.9
@@ -20,9 +20,14 @@
char *dm_strdup_aux(const char *str, const char *file, int line)
{
- char *ret = dm_malloc_aux_debug(strlen(str) + 1, file, line);
+ char *ret;
- if (ret)
+ if (!str) {
+ log_error("Internal error: dm_strdup called with NULL pointer");
+ return NULL;
+ }
+
+ if ((ret = dm_malloc_aux_debug(strlen(str) + 1, file, line)))
strcpy(ret, str);
return ret;
^ permalink raw reply [flat|nested] 2+ messages in thread
* device-mapper ./WHATS_NEW lib/mm/dbg_malloc.c
@ 2008-06-25 14:10 agk
0 siblings, 0 replies; 2+ messages in thread
From: agk @ 2008-06-25 14:10 UTC (permalink / raw)
To: dm-cvs, dm-devel
CVSROOT: /cvs/dm
Module name: device-mapper
Changes by: agk@sourceware.org 2008-06-25 14:10:34
Modified files:
. : WHATS_NEW
lib/mm : dbg_malloc.c
Log message:
Align struct memblock in dbg_malloc for sparc.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/WHATS_NEW.diff?cvsroot=dm&r1=1.244&r2=1.245
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/lib/mm/dbg_malloc.c.diff?cvsroot=dm&r1=1.11&r2=1.12
--- device-mapper/WHATS_NEW 2008/06/24 22:53:47 1.244
+++ device-mapper/WHATS_NEW 2008/06/25 14:10:33 1.245
@@ -1,5 +1,6 @@
Version 1.02.27 -
===============================
+ Align struct memblock in dbg_malloc for sparc.
Add --unquoted and --rows to dmsetup.
Avoid compiler warning about cast in dmsetup.c's OFFSET_OF macro.
Fix inverted no_flush debug message.
--- device-mapper/lib/mm/dbg_malloc.c 2007/08/21 16:26:07 1.11
+++ device-mapper/lib/mm/dbg_malloc.c 2008/06/25 14:10:33 1.12
@@ -40,7 +40,7 @@
const char *file; /* File that allocated */
int line; /* Line that allocated */
void *magic; /* Address of this block */
-};
+} __attribute__((aligned(8)));
static struct {
unsigned block_serialno;/* Non-decreasing serialno of block */
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-25 14:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-15 14:40 device-mapper ./WHATS_NEW lib/mm/dbg_malloc.c agk
-- strict thread matches above, loose matches on Subject: below --
2008-06-25 14:10 agk
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.