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

panic: chacha20poly1305: invalid buffer overlap #102

Closed
SiJinmin opened this issue Jul 19, 2018 · 5 comments
Closed

panic: chacha20poly1305: invalid buffer overlap #102

SiJinmin opened this issue Jul 19, 2018 · 5 comments
Labels

Comments

@SiJinmin
Copy link

服务端启动一会以后就发生了这个错误

@riobard
Copy link

riobard commented Jul 27, 2018

Did you use with Go 1.11?

@xqdoo00o
Copy link

xqdoo00o commented Aug 22, 2018

I think it's a compatible issue with ss-android that turned on DNS forward option .

Below tests env:
ss-android version: 4.5.7 with turned on DNS forward option,
network: China Unicom 4g,
go version: 1.11.

Encryption Connection test Server log
AEAD_CHACHA20_POLY1305 Not passed panic: chacha20poly1305: invalid buffer overlap
Stream Cipher Not passed UDP remote write error: write udp [::]:58739->8.8.8.8:53: sendto: message too long
AEAD_AES_xxx_GCM Not Passed panic: crypto/cipher: invalid buffer overlap


If I turn off DNS forward option in ss-android, all tests Passed.

@riobard
Copy link

riobard commented Aug 24, 2018

@riobard riobard added the bug label Aug 24, 2018
@xqdoo00o
Copy link

Still the same errors, except for AES_GCM.
Maybe the release built with go 1.10.3?

@lixin9311
Copy link
Collaborator

It's a feature introduced in go 1.11 to check the overlapping of the buffers upon decryption.
For more information, see #95
Fixed in #109

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants