|
|
| Author |
Message |
< Erlang bugs mailing list ~ Memory explosion in http_util:integer_to_hexlist/1 |
| Ayrnieu |
Posted: Wed Dec 27, 2006 1:56 pm |
|
|
|
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 |
|
|
| Back to top |
|
| Guest |
Posted: Wed Jan 10, 2007 9:23 am |
|
|
|
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 |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
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
|
|
|