ShadowsocksR-Live / iShadowsocksR

ShadowsocksR (SSRoT) client for iOS
GNU General Public License v3.0
574 stars 326 forks source link

在有些情况下libsodium会崩溃 #19

Closed ghost closed 5 years ago

ghost commented 5 years ago

大佬你好,我发现我的在使用需要libsodium加密的时候会崩溃,消息是sodium_set_misuse_handler. WX20190522-072210

ssrlive commented 5 years ago

你的 配置 去掉 敏感信息 发出来一下。

ghost commented 5 years ago

Ip:xxxx Port:80 Password:xxxxxxxxx Method:chacha20-ietf Protocol:auth_aes_128_md5 protocol_param:1:xxxxxx Ofbs:http_simple Obfs_param:189.cn

在 2019年5月22日,上午10:24,ssrlive notifications@github.com 写道:

你的 配置 去掉 敏感信息 发出来一下。 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ShadowsocksR-Live/iShadowsocksR/issues/19?email_source=notifications&email_token=AJOIKYYSF3ATGN7MFO7CUY3PWSVFTA5CNFSM4HOPOLS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODV5WTDY#issuecomment-494627215, or mute the thread https://github.com/notifications/unsubscribe-auth/AJOIKY63UDRUK4IFIZIK5PTPWSVFTANCNFSM4HOPOLSQ.

ghost commented 5 years ago

只要选择libsodium的算法:chacha20,chacha20-ietf就会崩溃。不是就没有任何问题

ssrlive commented 5 years ago

好的。 目前在做 overtls 分支,直接走 https 协议,届时所有加密、协议、混淆 都显多余。

ghost commented 5 years ago

已解决,Xcode release的代码优化设置问题。谢谢大佬回复

ssrlive commented 5 years ago

代码优化设置有何要注意的细节?最好提交pr

ghost commented 5 years ago

设置成弄而不是fastest,不然libsodium直接崩了

ghost commented 5 years ago

OPTIMIZATION_LEVEL 设置DEBUG和RELEASE都是None

lvpeng0412 commented 4 years ago

修改了后release还是闪退,而且还定位不到闪退的位置 @TheWanderingCoel

ssrlive commented 4 years ago

https://github.com/ShadowsocksR-Live/iShadowsocksR/issues/30#issuecomment-536197706

lvpeng0412 commented 4 years ago

@ssrlive 感谢,闪退问题解决了