add control flow obf for garble

This commit is contained in:
KingKDot
2026-04-20 13:46:59 -05:00
parent a43da5e047
commit a58e0fadf1
37 changed files with 47 additions and 0 deletions
+2
View File
@@ -51,6 +51,7 @@ func isRunningInMemory() bool {
}
func runClient(cfg config.Config) {
//garble:controlflow block_splits=10 junk_jumps=10 flatten_passes=2
baseBackoff := computeBaseBackoff()
backoff := baseBackoff
log.Printf("runtime GOOS=%s GOARCH=%s cfg.OS=%s cfg.Arch=%s", runtime.GOOS, runtime.GOARCH, cfg.OS, cfg.Arch)
@@ -518,6 +519,7 @@ func truncateStr(s string, n int) string {
}
func runSession(ctx context.Context, cancel context.CancelFunc, conn *websocket.Conn, cfg config.Config) (err error) {
//garble:controlflow block_splits=10 junk_jumps=10 flatten_passes=2
defer func() {
if r := recover(); r != nil {
reason := fmt.Sprintf("session panic: %v", r)