Kaydet (Commit) d6071901 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

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
üst 8d2fe8d7
......@@ -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; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment