[erlang-bugs] Memory explosion in http_util:integer_to_hexlist/1

Gunilla Arendt gunilla@REDACTED
Wed Jan 10 10:19:38 CET 2007


Hi,

Thanks for your comment. This will be fixed in inets-4.7.8,
to be released with R11B-3.

Regards,
Gunilla, Erlang/OTP team

Julian Fondren wrote:
> inets-4.7.6/src/http_util.erl contains this code:
> 
>   integer_to_hexlist(Num)->
>       integer_to_hexlist(Num, get_size(Num), []).
> 
> Which should probably be:
> 
>   integer_to_hexlist(Num) when integer(Num) ->
>       integer_to_hexlist(Num, get_size(Num), []).
> 
> 
> Thank you,
> Julian
> 
> ps. do not do this: http_util:integer_to_hexlist([0]).





More information about the erlang-bugs mailing list