Fixed bug that caused MARC decode to SEGV for some invalid MARC records.
[yaz-moved-to-github.git] / test / marc4.xml
diff --git a/test/marc4.xml b/test/marc4.xml
new file mode 100644 (file)
index 0000000..8429e20
--- /dev/null
@@ -0,0 +1,9 @@
+<!-- Indicator length at offset 10 should hold a digit. Assuming 2 -->
+<!-- Identifier length at offset 11 should hold a digit. Assuming 2 -->
+<!-- Base address at offsets 12..16 should hold a number. Assuming 0 -->
+<!-- Length implementation at offset 22 should hold a digit. Assuming 0 -->
+<record xmlns="http://www.loc.gov/MARC21/slim">
+  <leader>009140091a22a  22003370 </leader>
+  <!-- Base address not at end of directory base=0 end=402 -->
+  <!-- Bad data-offset=0 or data-length=100170 -->
+</record>