From fc763bd9b96eb99c40734bd3db332c2d4bd84d06 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 10 Feb 2018 16:55:30 +0000 Subject: ofz#6180 Integer-overflow Change-Id: Ibf4b40521f5be3866451e574abc59b7e1cf3aec9 --- xmloff/source/core/unointerfacetouniqueidentifiermapper.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'xmloff') 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(nId)) - mnNextId = nId + 1; + { + mnNextId = nId; + ++mnNextId; + } } } -- cgit