tun2socks icon indicating copy to clipboard operation
tun2socks copied to clipboard

UInt16() initializaiton fails when passing large data chunck

Open OrRon opened this issue 6 years ago • 1 comments

Hi,

I have found a consistent crush when using the stack.

In this line: https://github.com/zhuhaow/tun2socks/blob/master/tun2socks/TSTCPSocket.swift#L198 UInt16(data.count) fails because the data count is bigger then 65535.

Let me know if you need help reproducing.

Thanks.

OrRon avatar Aug 05 '18 20:08 OrRon

Hi OrRon,

This is a well known issue, check #4 here.

Try if it works. I've heard that there are still other issues that cause crash.

zhuhaow avatar Aug 06 '18 05:08 zhuhaow