From 88880e1f8962bde4482782bf7685fa1c62e830c5 Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Tue, 22 Jun 2010 13:11:29 +0000 Subject: [PATCH] Use flexible data[] in cmirrord request to prevent abort in runtime size checks. --- WHATS_NEW | 1 + libdm/misc/dm-log-userspace.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW b/WHATS_NEW index cb57ed3c0..7533e13f3 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.68 - =============================== + Use flexible data[] in cmirrord request to prevent abort in runtime size checks. Honor log argument when down-converting stacked mirror. Sleep to workaround clvmd -S race: socket closed early and server drops cmd. Use early udev synchronisation and update of dev nodes for clustered mirrors. diff --git a/libdm/misc/dm-log-userspace.h b/libdm/misc/dm-log-userspace.h index 9f71f4b87..7cacb1845 100644 --- a/libdm/misc/dm-log-userspace.h +++ b/libdm/misc/dm-log-userspace.h @@ -391,7 +391,7 @@ struct dm_ulog_request { uint32_t request_type; /* DM_ULOG_* defined above */ uint32_t data_size; /* How much data (not including this struct) */ - char data[0]; + char data[]; }; #endif /* __DM_LOG_USERSPACE_H__ */ -- 2.43.5