mirror of
https://github.com/savannstm/marshal-rs.git
synced 2026-05-17 08:16:52 +00:00
Adds failing regression tests demonstrating that marshal-rs corrupts symbol-link keys when the same Hash structure is reused after a UserMarshal boundary. Ruby produces this data for any array of identical classes (e.g. [OpenStruct.new(a:1), OpenStruct.new(a:10)]). Test cases: - symbol_link_keys_preserved_in_repeated_hashmap — fails (key becomes Null) - symbol_link_values_are_distinct — fails (first pair disappears) - plain_hash_with_symbol_link_values — passes (not affected) The bug corrupts the symbols table when parsing hashmaps, dropping the first key-value pair and leaving a Null key in the second. |
||
|---|---|---|
| .. | ||
| dump.rs | ||
| game.rs | ||
| load.rs | ||
| serde.rs | ||
| symbol_link_reuse_test.rs | ||