You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ji...@apache.org on 2021/02/04 14:35:58 UTC
[openoffice] branch trunk updated: Check bounds
This is an automated email from the ASF dual-hosted git repository.
jim pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/trunk by this push:
new 14bde5d Check bounds
14bde5d is described below
commit 14bde5dae6dcda56a7bf1cd9b998623709f9e755
Author: Jim Jagielski <ji...@gmail.com>
AuthorDate: Thu Feb 4 09:35:06 2021 -0500
Check bounds
(cherry picked from commit d0cfab3807a7378eda5575dc9edbf7a9ee0080a5)
---
main/redland/raptor/raptor2-2.0.15.patch.nspace | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/main/redland/raptor/raptor2-2.0.15.patch.nspace b/main/redland/raptor/raptor2-2.0.15.patch.nspace
index 8e07f2d..b3363e6 100644
--- a/main/redland/raptor/raptor2-2.0.15.patch.nspace
+++ b/main/redland/raptor/raptor2-2.0.15.patch.nspace
@@ -29,6 +29,16 @@ index 693b9468..0d3a36a5 100644
if(element->declared_nspaces)
nspace_max_count += raptor_sequence_size(element->declared_nspaces);
if(element->xml_language)
+@@ -216,6 +216,9 @@ raptor_xml_writer_start_element_common(raptor_xml_writer* xml_writer,
+
+ if(nstack && element->attributes) {
+ for(i = 0; i < element->attribute_count; i++) {
++ if (nspace_declarations_count > element->attribute_count)
++ goto error;
++
+ /* qname */
+ if(element->attributes[i]->nspace) {
+ /* Check if we need a namespace declaration attribute */
@@ -237,7 +238,7 @@ raptor_xml_writer_start_element_common(raptor_xml_writer* xml_writer,
}
}