summaryrefslogtreecommitdiff
path: root/unoidl
diff options
context:
space:
mode:
Diffstat (limited to 'unoidl')
-rw-r--r--unoidl/source/unoidlprovider.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/unoidl/source/unoidlprovider.cxx b/unoidl/source/unoidlprovider.cxx
index 68d5ebc5b868..dc42fa122a37 100644
--- a/unoidl/source/unoidlprovider.cxx
+++ b/unoidl/source/unoidlprovider.cxx
@@ -1186,7 +1186,7 @@ UnoidlProvider::UnoidlProvider(OUString const & uri): file_(new MappedFile(uri))
}
sal_uInt32 off = file_->read32(8);
mapSize_ = file_->read32(12);
- if (off + 8 * mapSize_ > file_->size) { //TODO: overflow
+ if (off + 8 * sal_uInt64(mapSize_) > file_->size) { // cannot overflow
throw FileFormatException(
file_->uri, "UNOIDL format: root map offset + size too large");
}