From f6fbc3a7f494cd0fe6156c49e8bf59e15c24bd3c Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 14 Dec 2021 12:39:47 +0100 Subject: [PATCH] only check single char annotations --- ion_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ion_private.h b/ion_private.h index 1765d62..aa91263 100644 --- a/ion_private.h +++ b/ion_private.h @@ -1667,7 +1667,7 @@ static inline void php_ion_unserialize_annotations(php_ion_unserializer *ser) ION_STRING ann_str; ION_CHECK(ion_reader_get_an_annotation(ser->reader, i, &ann_str)); - if (ann_str.length > 1) { + if (ann_str.length != 1) { continue; } -- 2.30.2