From 70a64c23c9d77b114dcc71e70e69aa8868693f3f Mon Sep 17 00:00:00 2001 From: Nathan Chandrasekar Date: Sat, 17 Oct 2026 20:14:17 -0400 Subject: test: Add binary plist parser behavior tests Build small binary plists in memory and check that arrays and dicts parse correctly with 1, 2 and 3 byte object references, and that strings, extended size markers and array/dict references extending beyond the object data area into the offset table are rejected. Co-Authored-By: Claude Opus 5.5 --- test/Makefile.am | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test/Makefile.am') diff --git a/test/Makefile.am b/test/Makefile.am index 76d2373..1d98349 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -14,7 +14,8 @@ noinst_PROGRAMS = \ plist_btest \ plist_jtest \ plist_otest \ - xml_behavior_test + xml_behavior_test \ + bplist_behavior_test plist_cmp_SOURCES = plist_cmp.c plist_cmp_LDADD = \ @@ -42,6 +43,9 @@ plist_otest_LDADD = $(top_builddir)/src/libplist-2.0.la xml_behavior_test_SOURCES = xml_behavior_test.c xml_behavior_test_LDADD = $(top_builddir)/src/libplist-2.0.la +bplist_behavior_test_SOURCES = bplist_behavior_test.c +bplist_behavior_test_LDADD = $(top_builddir)/src/libplist-2.0.la + TESTS = \ empty.test \ small.test \ @@ -85,6 +89,7 @@ TESTS = \ ostep-comments.test \ ostep-invalid-types.test \ xml_behavior.test \ + bplist_behavior.test \ plistutil-streams.test EXTRA_DIST = \ -- cgit v1.1-32-gdbae