[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Lynx-dev] SOCK5 crash+fix
From: |
Gisle Vanem |
Subject: |
[Lynx-dev] SOCK5 crash+fix |
Date: |
Thu, 10 Mar 2022 14:45:28 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 |
While trying Lynx with Tor's SOCK5 proxy:
lynx -dump -socks5_proxy=localhost:9050
https://www.bbcweb3hytmzhn5d532owbu6oqadra5z3ar726vq5kgwwn6aucdccrad.onion/
(the BBC Homepage), I got a strange crash for this code:
socks5_protocol = HTSprintf0(NULL,
gettext("(for %s at %s) SOCKS5"),
protocol, socks5_host);
A NULL-ptr read which I fail to understand.
But simply replacing with:
char socks5_buf [1000];
...
snprintf(socks5_buf, sizeof(socks5_buf),
gettext("(for %s at %s) SOCKS5"), protocol, socks5_host);
protocol = socks5_buf;
plus some other patches to HTTCP.c (attached), Lynx+Tor
works on Windows-10. The diff is against the 2.9.0dev.10
version. Latest I believe (?)
--
--gv
HTTCP.c.diff
Description: Text document
- [Lynx-dev] SOCK5 crash+fix,
Gisle Vanem <=
- Re: [Lynx-dev] SOCK5 crash+fix, Steffen Nurpmeso, 2022/03/10
- Re: [Lynx-dev] SOCK5 crash+fix, Thorsten Glaser, 2022/03/10
- Re: [Lynx-dev] SOCK5 crash+fix, Thomas Dickey, 2022/03/10
- Re: [Lynx-dev] SOCK5 crash+fix, Steffen Nurpmeso, 2022/03/10
- Re: [Lynx-dev] SOCK5 crash+fix, Gisle Vanem, 2022/03/11
- Re: [Lynx-dev] SOCK5 crash+fix, Gisle Vanem, 2022/03/11
- Re: [Lynx-dev] SOCK5 crash+fix, Gisle Vanem, 2022/03/11
- Re: [Lynx-dev] SOCK5 crash+fix, Thorsten Glaser, 2022/03/11
- Re: [Lynx-dev] SOCK5 crash+fix, Steffen Nurpmeso, 2022/03/11
- Re: [Lynx-dev] SOCK5 crash+fix, Thomas Dickey, 2022/03/12