Open
Description
It is pretty easy to construct small malicious encoding/gob packets with large impacts, e.g. by using a large map hint (CL 40113).
I don't see:
- anything in the encoding/gob docs that discusses safe handling of untrusted data
- anything in the encoding/gob API that would support checking whether untrusted data is safe to decode
- anything in the implementation that ensures e.g. that there is a relationship between the amount of data and the memory used; if there were limits on amplification, then a
io.LimitedReader
could be used
Although maybe I missed something.
It seems like we should add some or all of the above.