diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-02-10 16:55:30 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-02-10 16:55:30 +0000 |
commit | fc763bd9b96eb99c40734bd3db332c2d4bd84d06 (patch) | |
tree | 9ad4413ac720e029f8a0249bf253e48c516e4c82 | |
parent | 7cc2a1e231b3882c7a5a501f65230ceca92d3b36 (diff) |
ofz#6180 Integer-overflow
Change-Id: Ibf4b40521f5be3866451e574abc59b7e1cf3aec9
-rw-r--r-- | xmloff/source/core/unointerfacetouniqueidentifiermapper.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xmloff/source/core/unointerfacetouniqueidentifiermapper.cxx b/xmloff/source/core/unointerfacetouniqueidentifiermapper.cxx index 5e144d7f7053..00a97a9cc3fa 100644 --- a/xmloff/source/core/unointerfacetouniqueidentifiermapper.cxx +++ b/xmloff/source/core/unointerfacetouniqueidentifiermapper.cxx @@ -167,7 +167,10 @@ void UnoInterfaceToUniqueIdentifierMapper::insertReference( const OUString& rIde // an integer value like this one sal_Int32 nId = rIdentifier.copy(2).toInt32(); if (nId > 0 && mnNextId <= static_cast<sal_uInt32>(nId)) - mnNextId = nId + 1; + { + mnNextId = nId; + ++mnNextId; + } } } |