diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-04-16 14:07:23 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-04-16 14:13:47 +0200 |
commit | 4586d79d7421d0b4289096330c8ae0045023b313 (patch) | |
tree | c7a8f8ccf00a9bdc4ee059d1da5d12efab873874 /unotools | |
parent | 12984e46704f1e55f76b210cf65217e54662dc26 (diff) |
Off by one (-fsanitize=address)
Change-Id: Idaeeb0b70458fe4c02d9ed585cb69db9dabb07b0
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/misc/fontcvt.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unotools/source/misc/fontcvt.cxx b/unotools/source/misc/fontcvt.cxx index 2b6d4ac025f8..1cb82c1202c3 100644 --- a/unotools/source/misc/fontcvt.cxx +++ b/unotools/source/misc/fontcvt.cxx @@ -1193,7 +1193,7 @@ StarSymbolToMSMultiFontImpl::StarSymbolToMSMultiFontImpl(bool bPerfectOnly) const ExtendedConvertTable& r = aAgressiveTable[i]; SymbolEntry aEntry; aEntry.eFont = r.meFont; - for (int j = r.mnSize / sizeof(r.mpTable[0]); j >=0; --j) + for (int j = r.mnSize / sizeof(r.mpTable[0]) - 1; j >=0; --j) { aEntry.cIndex = r.mpTable[j].cMS; maMagicMap.insert( |