From 17a9d861ad3acb3e7f523556037a8d33f95e0b6a Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Fri, 10 Dec 2021 23:11:19 +0100 Subject: [PATCH] only check 1-char annotations --- ion_private.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ion_private.h b/ion_private.h index 56da560..5f2cc30 100644 --- a/ion_private.h +++ b/ion_private.h @@ -1622,6 +1622,10 @@ 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) { + continue; + } + switch (*ann_str.value) { case 'R': if (ser->annotations.makeref) { -- 2.30.2