summaryrefslogtreecommitdiff
path: root/include/sfx2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-03 10:14:20 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-03 10:14:20 +0200
commitd60719015e1a82873b39565b77c24e6ae28edd24 (patch)
tree202ff64221656c697e420548347d7abc9d4ce19c /include/sfx2
parent8d2fe8d7e5f374f3a106a4fc58ef597a52815ad0 (diff)
Use variable-length array idiom for SfxType::aAttrib
...to avoid false -fsanitize=array-bounds warnings. All instances of SfxType are created (in idl) as instances of SfxTypeN with properly sized nAttrib arrays. Change-Id: Iad9faa467affed656750df6bb8579d85829e97ca
Diffstat (limited to 'include/sfx2')
-rw-r--r--include/sfx2/msg.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sfx2/msg.hxx b/include/sfx2/msg.hxx
index 89faffd09c06..611156a88de2 100644
--- a/include/sfx2/msg.hxx
+++ b/include/sfx2/msg.hxx
@@ -112,7 +112,7 @@ struct SfxType
{
TypeId aTypeId;
sal_uInt16 nAttribs;
- SfxTypeAttrib aAttrib[16];
+ SfxTypeAttrib aAttrib[1]; // variable length
const TypeId& Type() const
{ return aTypeId; }