Erlang Mailing Lists

Author Message

<  Erlang bugs mailing list  ~  Memory explosion in http_util:integer_to_hexlist/1

Ayrnieu
Posted: Wed Dec 27, 2006 1:56 pm Reply with quote
User Joined: 13 Nov 2006 Posts: 15
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]).
_______________________________________________
erlang-bugs mailing list
erlang-bugs@erlang.org
http://www.erlang.org/mailman/listinfo/erlang-bugs
Post recived from mailinglist
View user's profile Send private message
Guest
Posted: Wed Jan 10, 2007 9:23 am Reply with quote
Guest
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]).


_______________________________________________
erlang-bugs mailing list
erlang-bugs@erlang.org
http://www.erlang.org/mailman/listinfo/erlang-bugs
Post recived from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum