From: Michael Wallner Date: Fri, 10 Dec 2021 22:11:19 +0000 (+0100) Subject: only check 1-char annotations X-Git-Tag: v0.1.0~86 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=17a9d861ad3acb3e7f523556037a8d33f95e0b6a;p=awesomized%2Fext-ion only check 1-char annotations --- 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) {