Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tamer/src/ld/poc.rs')
-rw-r--r--tamer/src/ld/poc.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tamer/src/ld/poc.rs b/tamer/src/ld/poc.rs
index d7f9733..2cf0100 100644
--- a/tamer/src/ld/poc.rs
+++ b/tamer/src/ld/poc.rs
@@ -314,6 +314,14 @@ fn load_xmlo<'a>(
_ => Ok(()),
}
}
+ Ok(Event::End(ele)) => {
+ match ele.name() {
+ // We don't need to read any further than the end of
+ // the fragments (symtable, sym-deps, fragments)
+ b"preproc:fragments" => break (),
+ _ => Ok(()),
+ }
+ }
Ok(Event::Eof) => break (),
Err(e) => {
panic!("Error at {}: {:?}", reader.buffer_position(), e);