Skip to content

feat: upgrade to latest lutaml-model XML mechanisms#67

Open
ronaldtse wants to merge 3 commits intomainfrom
rt-lutaml-model-080
Open

feat: upgrade to latest lutaml-model XML mechanisms#67
ronaldtse wants to merge 3 commits intomainfrom
rt-lutaml-model-080

Conversation

@ronaldtse
Copy link
Contributor

No description provided.

Comment on lines +55 to +58
xml_content.gsub(
/<(.*)xmlns="(.*)" targetNamespace="(.*)"(.*)>/,
'<\1xmlns="\3" targetNamespace="\3"\4>'
)

Check failure

Code scanning / CodeQL

Polynomial regular expression used on uncontrolled data High

This
regular expression
that depends on a
library input
may run slow on strings starting with '<' and with many repetitions of '<a'.
This
regular expression
that depends on a
library input
may run slow on strings starting with '<xmlns="' and with many repetitions of 'xmlns="a'.
This
regular expression
that depends on a
library input
may run slow on strings starting with '<xmlns="" targetNamespace="' and with many repetitions of '" targetNamespace="a'.
This
regular expression
that depends on a
library input
may run slow on strings starting with '<xmlns="" targetNamespace=""' and with many repetitions of '"a'.
Comment on lines +62 to +70
xml_content
.gsub(
/<GML:ApplicationSchema(.*)xmlns="(.*)"(.*)>/,
'<GML:ApplicationSchema\1altered_xmlns="\2"\3>'
)
.gsub(
/<CityGML:ApplicationSchema(.*)xmlns="(.*)"(.*)>/,
'<CityGML:ApplicationSchema\1altered_xmlns="\2"\3>'
)

Check failure

Code scanning / CodeQL

Polynomial regular expression used on uncontrolled data High

This
regular expression
that depends on a
library input
may run slow on strings starting with '<CityGML:ApplicationSchema' and with many repetitions of '<CityGML:ApplicationSchemaa'.
This
regular expression
that depends on a
library input
may run slow on strings starting with '<CityGML:ApplicationSchemaxmlns="' and with many repetitions of 'xmlns="a'.
This
regular expression
that depends on a
library input
may run slow on strings starting with '<CityGML:ApplicationSchemaxmlns=""' and with many repetitions of '"a'.
Comment on lines +62 to +66
xml_content
.gsub(
/<GML:ApplicationSchema(.*)xmlns="(.*)"(.*)>/,
'<GML:ApplicationSchema\1altered_xmlns="\2"\3>'
)

Check failure

Code scanning / CodeQL

Polynomial regular expression used on uncontrolled data High

This
regular expression
that depends on a
library input
may run slow on strings starting with '<GML:ApplicationSchema' and with many repetitions of '<GML:ApplicationSchemaa'.
This
regular expression
that depends on a
library input
may run slow on strings starting with '<GML:ApplicationSchemaxmlns="' and with many repetitions of 'xmlns="a'.
This
regular expression
that depends on a
library input
may run slow on strings starting with '<GML:ApplicationSchemaxmlns=""' and with many repetitions of '"a'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant