Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

forward TCP port to http proxy or socks5 server "Segmentation fault" when using wrong pwd #37

Open
osnosn opened this issue Feb 26, 2023 · 8 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@osnosn
Copy link

osnosn commented Feb 26, 2023

In Openwrt 22.03 , xfrpc - 2.1.606-1,
system type : MediaTek MT7620A
CPU model : MIPS 24KEc V5.0

# frpc.ini
[common]
server_addr = mydomain.xxx
server_port = 37219
token = xxxxxx
user = test
protocol = tcp
tls_enable = true
[socks5-test]
type = tcp
local_ip = 127.0.0.1
local_port = 1080
remote_port = 31080

run it /usr/bin/xfrpc -c frpc.ini

127.0.0.1:1080 is a local socks5 service that requires account authentication.

"frps-0.42.0" is running in my Debian system (x86_64).

I use ssh with ProxyCommand ncat --proxy-type socks5 --proxy 127.0.0.1:31080 --proxy-auth usr:12345 %h %p connect to the remote server,
If wrong password used, xfrpc crashes with "Segmentation fault".

I change 127.0.0.1:1080 to http proxy.
I use ssh with ProxyCommand ncat --proxy-type http --proxy 127.0.0.1:31080 --proxy-auth usr:12345 %h %p connect to the remote server,
If wrong password used, xfrpc crashes with "Segmentation fault".

If use correct password for socks5 or http proxy.
xfrpc works fine.

$ ncat -v
Ncat: Version 7.80 ( https://nmap.org/ncat )
Ncat: You must specify a host to connect to. QUITTING.
@osnosn osnosn changed the title forward TCP port to http or socks5 server "Segmentation fault" when using wrong pwd forward TCP port to http proxy or socks5 server "Segmentation fault" when using wrong pwd Feb 26, 2023
@liudf0716
Copy link
Owner

@osnosn Thank you for your detailed bug report. I will confirm the bug as soon as possible.

@osnosn
Copy link
Author

osnosn commented Mar 2, 2023

# frpc.ini
[common]
server_addr = mydomain.xxx
server_port = 37219
token = xxxxxx
user = test
protocol = tcp
tls_enable = true
[socks5-t2]
type = tcp
local_ip = 192.168.1.200
local_port = 1080
remote_port = 34567

run it /usr/bin/xfrpc -c frpc.ini -f -d5

192.168.1.200:1080 is a "3proxy" service run in debian, provides http proxy(8888) and socks5(1080) that requires account authentication.

curl -i --proxy socks5h://user:abcd@127.0.0.1:34567 http://ident.me
If wrong password used for socks5, xfrpc crashes with "Segmentation fault".

I change local_port = 8888 in frpc.ini.
curl -i --proxy http://user:abcd@127.0.0.1:34567 http://ident.me
If wrong password used for http proxy, xfrpc crashes with "Segmentation fault".

If I use correct password for socks5 or http proxy.
xfrpc works fine.

@liudf0716 liudf0716 added the help wanted Extra attention is needed label Mar 2, 2023
@helintongh
Copy link
Collaborator

helintongh commented Mar 2, 2023

I will test and fix it on weekend.
If it's easy to reproduce, it shouldn't be too hard to change

@helintongh
Copy link
Collaborator

Now we add a debug version of xfrpc with asan that can detect memory errors in pr.
Can you compile xfrpc in the following command and paste the error message to this issue? so that we can determine what is wrong.thanks

cmake -DCMAKE_BUILD_TYPE=Debug ..

@osnosn
Copy link
Author

osnosn commented May 5, 2023

I don't know how to compile.

Downloaded the SDK for openwrt.
It took 3 hours and the feeds couldn't be downloaded successfully.
Give up.

@osnosn
Copy link
Author

osnosn commented May 6, 2023

#37
Same device (MT7620A) Same version, Same config.

run /usr/bin/xfrpc -f -d 9 -c /root/frpc-test.ini

[7][Sat May  6 19:10:53 2023][16574](config.c:328) Reading configuration file '/root/frpc-test.ini'
[7][Sat May  6 19:10:53 2023][16574](config.c:93) Section[common]: {server_addr:mydomain.xxx, server_port:37219, auth_token:AB-----------------124, interval:30, timeout:90}
[7][Sat May  6 19:10:53 2023][16574](config.c:115) Proxy service 0: {name:socks5-test, local_port:1080, type:tcp}
[7][Sat May  6 19:10:53 2023][16574](login.c:104) working in router
[6][Sat May  6 19:10:53 2023][16574](control.c:653) connect server [mydomain.xxx:37219]...
[7][Sat May  6 19:10:53 2023][16574](control.c:615) xfrp server connected
[7][Sat May  6 19:10:53 2023][16574](control.c:690) send plain msg ----> [o: { "version": "0.43.0", "hostname": "","os": "Linux", "arch": "mips", "user": "", "privilege_key": "8d50c4----------------6bf3149", "timestamp": 16833----53, "run_id": "207---------234", "pool_count": 1, "metas": null }]
[7][Sat May  6 19:10:53 2023][16574](control.c:627) start keep_control_alive
[7][Sat May  6 19:10:58 2023][16574](login.c:127) xfrp login response: run_id: [207---------234], version: [0.42.0]
[3][Sat May  6 19:10:58 2023][16574](control.c:445) login success! login_len 75 len 84 ilen 0
[7][Sat May  6 19:10:58 2023][16574](control.c:317) recv eas1238 iv data
[6][Sat May  6 19:10:58 2023][16574](control.c:159) Start xfrp proxy services ...
[7][Sat May  6 19:10:58 2023][16574](control.c:790) control proxy client: [Type 112 : proxy_name socks5-test : msg_len 244]
[7][Sat May  6 19:10:58 2023][16574](control.c:128) new client through tcp mux: 5
[7][Sat May  6 19:10:58 2023][16574](control.c:690) send plain msg ----> [w: { "run_id": "207---------234" }]
[7][Sat May  6 19:11:14 2023][16574](control.c:393) proxy service [socks5-test] [127.0.0.1:1080] start work connection. remain data length 0
[7][Sat May  6 19:11:14 2023][16574](client.c:133) proxy server [mydomain.xxx:31080] <---> client [127.0.0.1:1080]
[7][Sat May  6 19:11:14 2023][16574](control.c:128) new client through tcp mux: 7
[7][Sat May  6 19:11:14 2023][16574](control.c:690) send plain msg ----> [w: { "run_id": "207---------234" }]
[7][Sat May  6 19:11:14 2023][16574](client.c:78) what [128] client [5] connected : Operation in progress
[7][Sat May  6 19:11:14 2023][16574](client.c:70) xfrpc proxy close connect server [127.0.0.1:1080] stream_id 5: Operation in progress
[7][Sat May  6 19:11:14 2023][16574](tcpmux.c:266) free stream 5
[7][Sat May  6 19:11:14 2023][16574](client.c:182) free client 5
Segmentation fault

@osnosn
Copy link
Author

osnosn commented May 6, 2023

system "Debian GNU/Linux 11 (bullseye)" , x86_64

sudo apt-get install libjson-c-dev libevent-dev libssl-dev
git clone https://github.com/liudf0716/xfrpc.git xfrpc
cd xfrp
mkdir builder
cd builder
cmake -D THIRDPARTY_STATIC_B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y
KKlbct4UWE7RIrVO8kacNeS1EnLJG3IyVY+VPC1uONosq+AIJFI0EUkjaSJ08hvw8mg0v5CXR7P+
S3t5JKmX9XE4OXUOFtDae/SJe8PEwzR2ID8IHmrJT5wCiKUzfpN10NL6TRpztC5fZjFSWFpWbjZp
4Nav4Frzcxg8EPMGELLfan5yz0uCyuiTPmlJpPPCC6JvzrlfoWKw2TyIw/TnfyAWAKnliOnX0QTg
dr00j4wfQwZhYPydTSDMxjwgbQxFfzMNHRjDiSYR+eFdYri/BZHHuxUtFwsvvMcdJr4XmkLTlMGm
7u0x4IO32a7uPt0/8FfKpkWveKhs9Dd45VwjswrFTVcKiJItFK9JhnAgVD6/uNsZX5gziz4p7EMU
xqBl26+oYhnCwUgXu88UUKMbUOGScNgl/ntEnIbkpWwbYEOlm/gmct51/vrko3+Yt6ZiGmVxeQ5V
++OPUnNLu6C1Jm7HHB//Cn6QsgA4JF7sUZSBvzArHhDDrtDyG1VkAWbVlkDarterbeKhh5EA0EMZ
HenDmY+n0F9im/dvvog/c8wAggNz/bTepitt5adcrZ605cyVcUzOuAM3Wil34P8HKoLTNNP5AAA=

build Failed


rm -rf CMake* cmake_install.cmake Makefile thirdparty
cmake -DCMAKE_BUILD_TYPE=Debug  ..
echo ============================
make  V=s

build OK

$ ./xfrpc
==74495==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.
$ LD_PRELOAD=/usr/lib/gcc/x86_64-linux-gnu/10/libasan.so ./xfrpc -f -c frpc-test.ini
[6][Sat May  6 21:27:40 2023][74518](control.c:652) connect server [mydomain.xxx:37129]...
=================================================================
==74518==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6080000000f4 at pc 0x7f9810a36b11 bp 0x7ffc9bec4b50 sp 0x7ffc9bec4300
READ of size 76 at 0x6080000000f4 thread T0
    #0 0x7f9810a36b10 in __interceptor_strlen ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:370
    #1 0x7f981067a39a in json_tokener_parse_ex (/lib/x86_64-linux-gnu/libjson-c.so.5+0x839a)
    #2 0x7f981067cb16 in json_tokener_parse_verbose (/lib/x86_64-linux-gnu/libjson-c.so.5+0xab16)
    #3 0x7f981067cb7d in json_tokener_parse (/lib/x86_64-linux-gnu/libjson-c.so.5+0xab7d)
    #4 0x55fbb60ec2ea in login_resp_unmarshal /opt/xfrpc/msg.c:320
    #5 0x55fbb60e7210 in handle_login_response /opt/xfrpc/control.c:428
    #6 0x55fbb60e7610 in handle_frps_msg /opt/xfrpc/control.c:471
    #7 0x55fbb6100045 in process_data /opt/xfrpc/tcpmux.c:356
    #8 0x55fbb6100b13 in handle_tcp_mux_stream /opt/xfrpc/tcpmux.c:494
    #9 0x55fbb60e7af4 in recv_cb /opt/xfrpc/control.c:564
    #10 0x7f98106bb5e3 in bufferevent_run_readcb_ (/lib/x86_64-linux-gnu/libevent-2.1.so.7+0x195e3)
    #11 0x7f98106bff3b  (/lib/x86_64-linux-gnu/libevent-2.1.so.7+0x1df3b)
    #12 0x7f98106c5b4e  (/lib/x86_64-linux-gnu/libevent-2.1.so.7+0x23b4e)
    #13 0x7f98106c628e in event_base_loop (/lib/x86_64-linux-gnu/libevent-2.1.so.7+0x2428e)
    #14 0x55fbb60e9579 in close_main_control /opt/xfrpc/control.c:869
    #15 0x55fbb60ecdda in xfrpc_loop /opt/xfrpc/xfrpc.c:54
    #16 0x55fbb60d6b58 in main /opt/xfrpc/main.c:35
    #17 0x7f98104c0d09 in __libc_start_main ../csu/libc-start.c:308
    #18 0x55fbb60d6a69 in _start (/opt/xfrpc/builder/xfrpc+0xea69)

0x6080000000f4 is located 0 bytes to the right of 84-byte region [0x6080000000a0,0x6080000000f4)
allocated by thread T0 here:
    #0 0x7f9810aa4037 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:154
    #1 0x55fbb610000a in process_data /opt/xfrpc/tcpmux.c:354
    #2 0x55fbb6100b13 in handle_tcp_mux_stream /opt/xfrpc/tcpmux.c:494
    #3 0x55fbb60e7af4 in recv_cb /opt/xfrpc/control.c:564
    #4 0x7f98106bb5e3 in bufferevent_run_readcb_ (/lib/x86_64-linux-gnu/libevent-2.1.so.7+0x195e3)

SUMMARY: AddressSanitizer: heap-buffer-overflow ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:370 in __interceptor_strlen
Shadow bytes around the buggy address:
  0x0c107fff7fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c107fff7fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c107fff7fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c107fff7ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c107fff8000: fa fa fa fa fd fd fd fd fd fd fd fd fd fd fd fa
=>0x0c107fff8010: fa fa fa fa 00 00 00 00 00 00 00 00 00 00[04]fa
  0x0c107fff8020: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c107fff8030: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c107fff8040: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c107fff8050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c107fff8060: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
  Shadow gap:              cc
==74518==ABORTING

rm -rf CMake* cmake_install.cmake Makefile thirdparty
cmake  ..
echo ============================
make  V=s

build OK

$ ./xfrpc -f -c frpc-test.ini

Works fine.

Port forwarding to HTTP proxy or socks5.
Using the correct or incorrect account will not crash.

On Debian x86_64 systems. No bugs were found.

@helintongh
Copy link
Collaborator

system "Debian GNU/Linux 11 (bullseye)" , x86_64

sudo apt-get install libjson-c-dev libevent-dev libssl-dev
git clone https://github.com/liudf0716/xfrpc.git xfrpc
cd xfrp
mkdir builder
cd builder
cmake -D THIRDPARTY_STATIC_BUILD=ON ..   >> log  2>&1
echo ============================   >> log  2>&1
make  V=s   >> log  2>&1
gzip log
base64 log.gz
H4sICNtRVmQAA2xvZwDsnOtz2ziSwD+f/wqWP2xmtiIrkh9xXLdb5TiexLuOk4qTm9vb2WLxAUoc
kQQHAGV5av/4a4CkhAaa9MbxzF3VnRO9fo3Go9F4EuRkEnxesuAiSHhZ5wUTQZ6ySuVZnkQq51WQ
y+DtzZdg9uJgfjDbm0yCN0yxROXVwlY6f30V5FXGHwwQTIKUV0yHu1iyZBVkXAR3XKxw+LNg2kgx
jfNqmiSgI1d5XbN0IPogY5FqBJMPyfvUL95HKxb8GIlKh/suZevvIXeBwde5VPJAbdTZXhCcBwVf
gCmKIC445JbXzKiAYRSYrcghMggWBFNeq+kmE3UydWI5Cb7Ls+91qKTgEvLwFbrzl8F3rEo7/btc
LYMyl5MyUslSZyMSi6aE6pIHe5+XUFN3XYngq7ZrLfjPYIsAyscKyLqQB0HwRbJg8mPFJ0ADxQPZ
1DWYRga5OtjTBvz46cNfLi8+Bx/PP78Lrm7PgrNdBrU8EpC4tjFYFFI6O/two3Fra2McMJKUxZCV
1TIXaR0Jde8W95EGH47w8PRrjD8cz9Hp710PHyBUZLxY3kvFyrNgc3oSnhxN7paRgmjEBIrQbOZ7
F7zK8kUjdFBQqm5vrwMQS912Zwfwrwy+e7GZvdD/0uz6e5MhoztpY9z7Io2B5UTWLNENP5CMpVCf
bcSmG9i7EKzNTovTSEUHdbnD2l4ZNLW9vT8+yZ+OJvjGv100vWGWkQxixiowdpKArbOmKO63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ZQzSrnVT4m
m9NQWJbULZUVMpwWG6yqV7EBmc0FOlrReHhxEcOn3wOpo/nMRmCnX3SjMcifes+kLIcXhjMbgZ6c
s1JEmXymiVSOM7kmGEuxs5ZeksSn/VlLikommFv6/SGe6C3pBonuRi39rYfoQ6xVFknmEtLSX5dF
YcUaS5S5eHMrWqQ4ryXne/wieJR6qxTejYQ/KZO19HeTtNwEAP3+iM6Slvxuklgk7XmQODpa+iuy
KKlbct4UWE7RIrVO8kacNeS1EnLJG3IyVY+VPC1uONosq+AIJFI0EUkjaSJ08hvw8mg0v5CXR7P+
S3t5JKmX9XE4OXUOFtDae/SJe8PEwzR2ID8IHmrJT5wCiKUzfpN10NL6TRpztC5fZjFSWFpWbjZp
4Nav4Frzcxg8EPMGELLfan5yz0uCyuiTPmlJpPPCC6JvzrlfoWKw2TyIw/TnfyAWAKnliOnX0QTg
dr00j4wfQwZhYPydTSDMxjwgbQxFfzMNHRjDiSYR+eFdYri/BZHHuxUtFwsvvMcdJr4XmkLTlMGm
7u0x4IO32a7uPt0/8FfKpkWveKhs9Dd45VwjswrFTVcKiJItFK9JhnAgVD6/uNsZX5gziz4p7EMU
xqBl26+oYhnCwUgXu88UUKMbUOGScNgl/ntEnIbkpWwbYEOlm/gmct51/vrko3+Yt6ZiGmVxeQ5V
++OPUnNLu6C1Jm7HHB//Cn6QsgA4JF7sUZSBvzArHhDDrtDyG1VkAWbVlkDarterbeKhh5EA0EMZ
HenDmY+n0F9im/dvvog/c8wAggNz/bTepitt5adcrZ605cyVcUzOuAM3Wil34P8HKoLTNNP5AAA=

build Failed

rm -rf CMake* cmake_install.cmake Makefile thirdparty
cmake -DCMAKE_BUILD_TYPE=Debug  ..
echo ============================
make  V=s

build OK

$ ./xfrpc
==74495==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.
$ LD_PRELOAD=/usr/lib/gcc/x86_64-linux-gnu/10/libasan.so ./xfrpc -f -c frpc-test.ini
[6][Sat May  6 21:27:40 2023][74518](control.c:652) connect server [mydomain.xxx:37129]...
=================================================================
==74518==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6080000000f4 at pc 0x7f9810a36b11 bp 0x7ffc9bec4b50 sp 0x7ffc9bec4300
READ of size 76 at 0x6080000000f4 thread T0
    #0 0x7f9810a36b10 in __interceptor_strlen ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:370
    #1 0x7f981067a39a in json_tokener_parse_ex (/lib/x86_64-linux-gnu/libjson-c.so.5+0x839a)
    #2 0x7f981067cb16 in json_tokener_parse_verbose (/lib/x86_64-linux-gnu/libjson-c.so.5+0xab16)
    #3 0x7f981067cb7d in json_tokener_parse (/lib/x86_64-linux-gnu/libjson-c.so.5+0xab7d)
    #4 0x55fbb60ec2ea in login_resp_unmarshal /opt/xfrpc/msg.c:320
    #5 0x55fbb60e7210 in handle_login_response /opt/xfrpc/control.c:428
    #6 0x55fbb60e7610 in handle_frps_msg /opt/xfrpc/control.c:471
    #7 0x55fbb6100045 in process_data /opt/xfrpc/tcpmux.c:356
    #8 0x55fbb6100b13 in handle_tcp_mux_stream /opt/xfrpc/tcpmux.c:494
    #9 0x55fbb60e7af4 in recv_cb /opt/xfrpc/control.c:564
    #10 0x7f98106bb5e3 in bufferevent_run_readcb_ (/lib/x86_64-linux-gnu/libevent-2.1.so.7+0x195e3)
    #11 0x7f98106bff3b  (/lib/x86_64-linux-gnu/libevent-2.1.so.7+0x1df3b)
    #12 0x7f98106c5b4e  (/lib/x86_64-linux-gnu/libevent-2.1.so.7+0x23b4e)
    #13 0x7f98106c628e in event_base_loop (/lib/x86_64-linux-gnu/libevent-2.1.so.7+0x2428e)
    #14 0x55fbb60e9579 in close_main_control /opt/xfrpc/control.c:869
    #15 0x55fbb60ecdda in xfrpc_loop /opt/xfrpc/xfrpc.c:54
    #16 0x55fbb60d6b58 in main /opt/xfrpc/main.c:35
    #17 0x7f98104c0d09 in __libc_start_main ../csu/libc-start.c:308
    #18 0x55fbb60d6a69 in _start (/opt/xfrpc/builder/xfrpc+0xea69)

0x6080000000f4 is located 0 bytes to the right of 84-byte region [0x6080000000a0,0x6080000000f4)
allocated by thread T0 here:
    #0 0x7f9810aa4037 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:154
    #1 0x55fbb610000a in process_data /opt/xfrpc/tcpmux.c:354
    #2 0x55fbb6100b13 in handle_tcp_mux_stream /opt/xfrpc/tcpmux.c:494
    #3 0x55fbb60e7af4 in recv_cb /opt/xfrpc/control.c:564
    #4 0x7f98106bb5e3 in bufferevent_run_readcb_ (/lib/x86_64-linux-gnu/libevent-2.1.so.7+0x195e3)

SUMMARY: AddressSanitizer: heap-buffer-overflow ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:370 in __interceptor_strlen
Shadow bytes around the buggy address:
  0x0c107fff7fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c107fff7fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c107fff7fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c107fff7ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c107fff8000: fa fa fa fa fd fd fd fd fd fd fd fd fd fd fd fa
=>0x0c107fff8010: fa fa fa fa 00 00 00 00 00 00 00 00 00 00[04]fa
  0x0c107fff8020: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c107fff8030: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c107fff8040: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c107fff8050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c107fff8060: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
  Shadow gap:              cc
==74518==ABORTING
rm -rf CMake* cmake_install.cmake Makefile thirdparty
cmake  ..
echo ============================
make  V=s

build OK

$ ./xfrpc -f -c frpc-test.ini

Works fine.

Port forwarding to HTTP proxy or socks5. Using the correct or incorrect account will not crash.

On Debian x86_64 systems. No bugs were found.

thanks, I will try to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants