lynx-dev
[Top][All Lists]
Advanced

[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



Attachment: HTTCP.c.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]