termux-packages/packages/proxychains-ng/long-path-buffers.patch
Leonid Pliushch e649a0ae98 proxychains: handle cases when LD_PRELOAD string is long
Proxychains has temp buffer for LD_PRELOAD with size of 256
characters which may not be enough for cases when that environment
variable already contains several lib paths.

Issue: https://github.com/termux/x11-packages/issues/186
2019-12-13 20:44:02 +02:00

15 lines
430 B
Diff

diff -uNr proxychains-ng-4.14/src/main.c proxychains-ng-4.14.mod/src/main.c
--- proxychains-ng-4.14/src/main.c 2019-03-17 01:04:10.000000000 +0200
+++ proxychains-ng-4.14.mod/src/main.c 2019-12-13 20:38:27.768235332 +0200
@@ -65,8 +65,8 @@
int main(int argc, char *argv[]) {
char *path = NULL;
- char buf[256];
- char pbuf[256];
+ char buf[PATH_MAX];
+ char pbuf[PATH_MAX];
int start_argv = 1;
int quiet = 0;
size_t i;