Package: netcat-openbsd Version: 1.105-7 Severity: normal Tags: patch When using netcat with a CONNECT proxy that requires authentication, netcat truncates the "Proxy-Authorization" header to 7 characters.
The problem stems from the debian patch casting all `buf`s to char* but one sizeof(buf) was also changed by accident causing sizeof to return 8. --- a/patches/0001-port-to-linux-with-libsd.patch +++ b/patches/0001-port-to-linux-with-libsd.patch @@ -432,7 +432,7 @@ index 71108d5..befd0a9 100644 sizeof(resp)) == -1) errx(1, "Proxy username/password too long"); - r = snprintf(buf, sizeof(buf), "Proxy-Authorization: " -+ r = snprintf((char*)buf, sizeof((char*)buf), "Proxy-Authorization: " ++ r = snprintf((char*)buf, sizeof(buf), "Proxy-Authorization: " "Basic %s\r\n", resp); if (r == -1 || (size_t)r >= sizeof(buf)) errx(1, "Proxy auth response too long"); -- System Information: Debian Release: 8.1 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 3.19.0-15-generic (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash Init: unable to detect Versions of packages netcat-openbsd depends on: ii libbsd0 0.7.0-2 ii libc6 2.19-18 netcat-openbsd recommends no packages. netcat-openbsd suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org