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

Missing reading of # members of polystruct

Change-Id: I343a3e6d57e8f9e1a35cdf3b5825f5a6f58fd133
üst 06b8f15c
...@@ -2483,6 +2483,14 @@ css::uno::Any Provider::getByHierarchicalName(rtl::OUString const & aName) ...@@ -2483,6 +2483,14 @@ css::uno::Any Provider::getByHierarchicalName(rtl::OUString const & aName)
for (sal_uInt32 i = 0; i != n; ++i) { for (sal_uInt32 i = 0; i != n; ++i) {
params.push_back(file_->readNameLen(off, &off)); params.push_back(file_->readNameLen(off, &off));
} }
n = file_->read32(off + 1);
if (n > SAL_MAX_INT32) {
throw css::uno::DeploymentException(
("broken UNOIDL file: too many members of polymorphic"
" struct type template " + aName),
css::uno::Reference< css::uno::XInterface >());
}
off += 4;
std::vector< PolymorphicStructTypeTemplateDescription::Member > std::vector< PolymorphicStructTypeTemplateDescription::Member >
mems; mems;
for (sal_uInt32 i = 0; i != n; ++i) { for (sal_uInt32 i = 0; i != n; ++i) {
......
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