eduardsui / tlse

Single C file TLS 1.2/1.3 implementation, using tomcrypt as crypto library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Armv7 tls_packet_update

zhenyolka opened this issue · comments

Hi! I use tlse in my Android project - DPITunnel and there is one error or bug.
In my project with you library i try to connect to server with SSL_accept method and it works most times, but only on armv7 devices and release build type it gives me this error "Fatal signal 7 (SIGBUS) at 0x613939bd (code=1), thread 30210 (Thread-1211)"
Backtrace
#00 pc 000baeb0 /data/app-lib/ru.evgeniy.dpitunnel-1/libdpi-bypass.so (tls_packet_update+567)
#1 pc 000bf8d9 /data/app-lib/ru.evgeniy.dpitunnel-1/libdpi-bypass.so (tls_build_encrypted_extensions+132)
#2 pc 000bf23f /data/app-lib/ru.evgeniy.dpitunnel-1/libdpi-bypass.so (tls_parse_payload+1102)
#3 pc 000bfd4d /data/app-lib/ru.evgeniy.dpitunnel-1/libdpi-bypass.so (tls_parse_message+660)
#4 pc 000c12bb /data/app-lib/ru.evgeniy.dpitunnel-1/libdpi-bypass.so (tls_consume_stream+150)
#5 pc 000c21b3 /data/app-lib/ru.evgeniy.dpitunnel-1/libdpi-bypass.so (SSL_accept+122)
#6 pc 000d047d /data/app-lib/ru.evgeniy.dpitunnel-1/libdpi-bypass.so (init_tls_server_client(int&, TLSContext*)+52)

Hello!

This seems strange. Did you try some debugging with valgind? I don't have an ARM7 set-up to try, but if I can reproduce it, I can fix it.

E.