minidom/Cargo.toml 🔗
@@ -21,4 +21,4 @@ edition = "2018"
gitlab = { repository = "xmpp-rs/xmpp-rs" }
[dependencies]
-rxml = "^0.8.0"
+rxml = "0.9.1"
Emmanuel Gil Peyrot created
This was causing a memory corruption on closing tags for elements with a
name longer than 24 bytes. I haven’t investigated why smartstring < 1
had this bug, but it got fixed in 1.0.0 so let’s use that.
minidom/Cargo.toml | 2 +-
minidom/src/tests.rs | 12 ++++++++++++
tokio-xmpp/Cargo.toml | 2 +-
3 files changed, 14 insertions(+), 2 deletions(-)
@@ -21,4 +21,4 @@ edition = "2018"
gitlab = { repository = "xmpp-rs/xmpp-rs" }
[dependencies]
-rxml = "^0.8.0"
+rxml = "0.9.1"
@@ -452,3 +452,15 @@ fn missing_namespace_error() {
err => panic!("No or wrong error: {:?}", err),
}
}
+
+#[test]
+fn misserialisation() {
+ let xml =
+ "<jitsi_participant_codecType xmlns='jabber:client'>vp9</jitsi_participant_codecType>";
+ //let elem = xml.parse::<Element>().unwrap();
+ let elem = Element::builder("jitsi_participant_codecType", "jabber:client")
+ .append("vp9")
+ .build();
+ let data = String::from(&elem);
+ assert_eq!(xml, data);
+}
@@ -27,7 +27,7 @@ trust-dns-proto = "0.22"
trust-dns-resolver = "0.22"
xmpp-parsers = "0.19"
minidom = "0.15"
-rxml = "^0.8.0"
+rxml = "0.9.1"
webpki-roots = { version = "0.22", optional = true }
rand = "^0.8"