Pike 8.1.13 (latest git) canonical en-/decoding bug

Unknown <[email protected]> Wed, 18 Dec 2019 13:43:01 +0100
Newsgroups gmane.comp.lang.pike.user
Message-ID <[email protected]>
> Hi Pike devs,
>
> While playing around with some code using 8.1.13 from git I ran into 
> some really strange behaviour after decoding a mapping that had been 
> encoded using encode_value_canonic().
> The decoded data turned out to be quite different from what had been 
> originally encoded.
>
> I compiled a new Pike from the latest git commit but the issue was still 
> occurring, so I set out to narrow down what triggers this and managed to 
> produce the following test case.
>
> Some observations:
> - The value of m->a->foo and the index/key in m->b must be the same.
> - m->a->bar must be above a signed 32-bit int.

Thanks for the report and test case.

Fixed in Pike master.

	/grubba