From: Michael Wallner Date: Tue, 14 Dec 2021 11:39:47 +0000 (+0100) Subject: only check single char annotations X-Git-Tag: v0.1.0~79 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=f6fbc3a7f494cd0fe6156c49e8bf59e15c24bd3c;p=awesomized%2Fext-ion only check single char annotations --- 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; }