Skip to content

Code review fixes#68

Draft
ianprime0509 wants to merge 7 commits into
mainfrom
code-review-fixes
Draft

Code review fixes#68
ianprime0509 wants to merge 7 commits into
mainfrom
code-review-fixes

Conversation

@ianprime0509

Copy link
Copy Markdown
Owner

WIP branch for addressing (potential) issues found by GLM 5.2 reviewing this codebase.

Not all reported findings will necessarily be addressed, but it did find some legitimate bugs.

Intended to be merged by dropping the "GLM 5.2 code review" commit once all findings have been addressed (or not) as desired, and then rebased.

The previous logic didn't correctly implement the spec in checking cases related to explicit `xml` and `xmlns` namespace declarations.
Previously, we tried to split text nodes so they fit in the available buffer. This turned out to be rather complex, and potentially confusing for users. Now, we just expand to the full available node, even though it can use more memory in cases of very long runs of plain text.

There were already other pathological documents which could result in higher memory use, so I'm not sure this is really a big deal compared to the complexity it replaces.
Avoids conflicts between `a:bc` and `ab:c`, etc.
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