2 comments

[ 3.8 ms ] story [ 16.8 ms ] thread
Does Marshal dumps work across different computers or is it only compitable with the same computer that dumped the Marshal?
I thought Marshal and non-safe yaml are fundamentally unsafe. You’re allowing input to instantiate arbitrary objects. It’s relatively easy to find an exploitable class.

Python’s pickle function is equivalent and has a warning about this.