fix: attempting to unmarshall some arrays twice (#380)

This commit is contained in:
J. Nick Koston 2025-02-01 22:44:16 -06:00 committed by GitHub
parent 1aab230439
commit 586dc233fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -587,7 +587,7 @@ class Unmarshaller:
self._pos += -self._pos & 7 # align 8
key = self._read_uint16_unpack()
result_dict[key] = self._read_variant()
if (
elif (
child_0_token_as_int == TOKEN_O_AS_INT
or child_0_token_as_int == TOKEN_S_AS_INT
) and child_1_token_as_int == TOKEN_A_AS_INT: