Re: httpc crashing on particular urls

Antti Siponen <[email protected]> Thu, 1 Oct 2015 17:22:36 +0200
Newsgroups gmane.comp.lang.erlang.patches
Message-ID <CA+sdaLcWW8p1ktrGGm9_bTwuF86qvOff=Ojv3Q-QOX2KO1DqhQ@mail.gmail.com>
--===============5663985350962813542==
Content-Type: multipart/alternative; boundary=001a113958c8ec7d6805210c9db5

--001a113958c8ec7d6805210c9db5
Content-Type: text/plain; charset=UTF-8

On 1 October 2015 at 11:32, Ingela Anderton Andin <
[email protected]> wrote:

> I think it could be caught earlier.  I think maybe we should accept PR
> 846, and then make
> httpc define its fun to accept http and https schemes.
>

Ok, using the URI scheme validation scheme introduced by PR 846 the fix
could be as simple as this instead:

https://github.com/lantti/otp/commit/15714ed9834cdd34ae2456e868546e4d319c50ff

Antti

--001a113958c8ec7d6805210c9db5
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On 1 October 2015 at 11:32, Ingela Anderton Andin <span di=
r=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=
=3D"_blank">[email protected]</a>&gt;</span> wrote:<br><di=
v class=3D"gmail_extra"><div class=3D"gmail_quote"><blockquote class=3D"gma=
il_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,2=
04,204);padding-left:1ex">
 =20
   =20
 =20
  <div>
    I think it could be caught earlier.=C2=A0 I think maybe we should accep=
t
    PR 846, and then make<br>
    httpc define its fun to accept http and https schemes.</div></blockquot=
e><div><br></div><div>Ok, using the URI scheme validation scheme introduced=
 by PR 846 the fix could be as simple as this instead:<br>=C2=A0<a href=3D"=
https://github.com/lantti/otp/commit/15714ed9834cdd34ae2456e868546e4d319c50=
ff">https://github.com/lantti/otp/commit/15714ed9834cdd34ae2456e868546e4d31=
9c50ff</a><br><br></div><div>Antti<br></div></div></div></div>

--001a113958c8ec7d6805210c9db5--

--===============5663985350962813542==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
erlang-patches mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-patches

--===============5663985350962813542==--