Security of binary_to_term ?

Pascal Brisset <>
Wed Jun 27 13:15:21 CEST 2001


erlang:binary_to_term/1 generally exits with 'badarg' when applied to
invalid inputs. Is this behaviour guaranteed ? In other words, is it
safe to decode untrusted data with binary_to_term ?

The purpose is to send data between untrusted nodes with
term_to_binary and binary_to_term over TCP, rather than with the
erlang distribution protocol.

--- Pascal Brisset <> +33141986741 --
----- Cellicium | 73 avenue Carnot | 94230 Cachan | France ------




More information about the erlang-questions mailing list