1 | Revision history for Perl extension CBOR::XS |
1 | Revision history for Perl extension CBOR::XS |
2 | |
2 | |
3 | TODO: pack_keys? |
3 | TODO: pack_keys? |
4 | TODO: document encode_cbor_sharing? |
4 | TODO: document encode_cbor_sharing? |
5 | TODO: weaken cyclic structures? |
5 | TODO: weaken cyclic structures? |
6 | TODO: allowed_classes or so? |
6 | TODO: large negative integers |
7 | |
7 | |
|
|
8 | 1.7 Tue Jun 27 04:02:23 CEST 2017 |
|
|
9 | - SECURITY FIX: fix two bugs found by american fuzzy lop, |
|
|
10 | upgrade is advised if you accept data from untrusted |
|
|
11 | sources. |
|
|
12 | - an out-of bound sharedref or stringref index could cause an |
|
|
13 | out of bounds access - might be exploitable. |
|
|
14 | - a decoding error during indefinite array or hash decoding |
|
|
15 | could cause an endless loop. |
|
|
16 | |
|
|
17 | 1.6 Wed Dec 7 15:13:23 CET 2016 |
|
|
18 | - greatly expand the SECURITY IMPLICATIONS and similar sections. |
|
|
19 | - new constructor new_safe, to create a secure CBOR::XS object. |
|
|
20 | - new option forbid_objects, to disallow serialisation. |
|
|
21 | - new CBOR::XS::safe_filter functionality. |
|
|
22 | - fix a crash when decoding a cyclic data structure using |
|
|
23 | stringref/pack_strings when allow_cycles is disabled. |
|
|
24 | - fix a crash when decoding hash keys with length >= 2**31. |
|
|
25 | - avoid unreasonably long decoding times for certain |
|
|
26 | types of (corrupt) cbor texts. |
|
|
27 | - support arrays and hashes with >= 2**31 members. |
|
|
28 | - avoid overflow on pointer arithmetic when checking whether enough |
|
|
29 | data is available. |
|
|
30 | - fix a memory leak that occured when decoding failed while decoding |
|
|
31 | a tagged value. |
|
|
32 | - do not leak the partially constructed result when stringifying |
|
|
33 | a hash key throws an exception. |
|
|
34 | - various code size and efficiency optimizations (reduced code |
|
|
35 | from 42 to 40kB on my system, despite the new features). |
|
|
36 | |
|
|
37 | 1.5 Wed Apr 27 11:38:39 CEST 2016 |
8 | - Math::BigFloat madness workaround, see |
38 | - Math::BigFloat madness workaround, see |
9 | http://blog.schmorp.de/2016-04-23-mathbigfloat-maintainer-fail.html |
39 | http://blog.schmorp.de/2016-04-23-mathbigfloat-maintainer-fail.html |
10 | (bugreport by zdm@softvisio.net). |
40 | (bugreport by zdm@softvisio.net). |
11 | - add text_keys and text_strings options to force CBOR text encoding |
41 | - add text_keys and text_strings options to force CBOR text encoding |
12 | for perl hash keys or all strings, as a result of discussions |
42 | for perl hash keys or all strings, as a result of discussions |
13 | with Fredrik Ljunggren. |
43 | with Fredrik Ljunggren. |
|
|
44 | - implement support for arbitrary-exponent numbers (see |
|
|
45 | http://peteroupc.github.io/CBOR/bigfrac.html, tags 264 and 265) |
|
|
46 | for both en- and decoding. |
|
|
47 | - implement support for rational numbers (see |
|
|
48 | http://peteroupc.github.io/CBOR/rational.html, tag 30) for both |
|
|
49 | en- and decoding. |
|
|
50 | - the above effectively implements all registered CBOR extensions |
|
|
51 | in a sensible manner. |
14 | - remove some weird dead code that was duplication (%FILTER). |
52 | - remove some weird dead code that was duplicated (%FILTER). |
15 | - add t/58_hv.t, which tests hashes and the new text_* flags. |
53 | - add t/58_hv.t, which tests hashes and the new text_* flags. |
16 | hashes apparently were not encoded at all in any of the previous |
54 | hashes apparently were not encoded at all in any of the existing |
17 | tests. |
55 | tests. |
|
|
56 | - document Math::BigFloat base-2 performance/crash issues. |
|
|
57 | - use stability canary. |
18 | |
58 | |
19 | 1.41 Thu 25 Feb 15:22:03 CET 2016 |
59 | 1.41 Thu 25 Feb 15:22:03 CET 2016 |
20 | - avoid perl panics on nested FREEZE/THAW calls (testcase by |
60 | - avoid perl panics on nested FREEZE/THAW calls (testcase by |
21 | Victor Efimov). |
61 | Victor Efimov). |
22 | |
62 | |