only check single char annotations
authorMichael Wallner <mike@php.net>
Tue, 14 Dec 2021 11:39:47 +0000 (12:39 +0100)
committerMichael Wallner <mike@php.net>
Tue, 14 Dec 2021 11:54:08 +0000 (12:54 +0100)
ion_private.h

index 1765d62f0da47050a449e05501b80f85c780b56e..aa912635d601423918744060228d66638127a2e6 100644 (file)
@@ -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;
                }