Open jlfranklin opened 4 months ago
As a workaround, just update the line in main.cpp
of coddle
:
cflags << " -O3" << (cfg.marchNative ? " -march=native" : "");
When I have time, I'll add the config to be able to control the optimization level.
I ran into two places where the code crashes (SIGILL) when compiled with
-O3
. Cobble allowsdebug=true
(-O0) ordebug=false
(-O3), so I can't speak to other optimization levels.The first is in
find_mac()
. Adding aLOG("OCTET", i);
to the at airplay.cpp:58 keeps the optimizer from breaking the code.The second is in
generate_key_schedule()
. I didn't try fixing anything here.The
find_mac()
function is in airplay.cpp, but copied from the UxPlay project. Thegenerate_key_schedule()
is part of UxPlay. Note, that UxPlay has moved from where the submodule points (https://github.com/antimof/UxPlay) to https://github.com/FDH2/UxPlay, and has seen considerable development since this was pinned, including support for PIN-based access.