Commit b691a8e
committed
Add missing autoreset in Packer.pack_ext_type
pack_ext_type writes to the internal buffer but never checks
self._autoreset, unlike every other public pack method. This means
it always returns None and the packed data leaks into the output of
the next pack() call, corrupting the serialized stream.
Add the same autoreset pattern used by pack(), pack_map_pairs(),
pack_array_header(), and pack_map_header().1 parent f980636 commit b691a8e
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
861 | 861 | | |
862 | 862 | | |
863 | 863 | | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
864 | 868 | | |
865 | 869 | | |
866 | 870 | | |
| |||
0 commit comments