Complete StructuredData parity and parser hardening (#37)

This commit is contained in:
2026-08-09 01:51:29 +00:00
parent 6d02db8a9a
commit d980692933
18 changed files with 438 additions and 7 deletions

View File

@@ -296,6 +296,9 @@ impl<'a> Parser<'a> {
if self.at_end(name) {
break;
}
if self.rest().is_empty() {
return Err(self.error("unterminated XML LLSD scalar"));
}
if self.rest().starts_with("<!--") {
self.skip_comment()?;
continue;