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

fix bug & opt optimization client text encoding #359

Merged
merged 2 commits into from
Jul 9, 2023

Conversation

BlackTrace
Copy link
Contributor

1.fix map race bug
fatal error: concurrent map iteration and map write
goroutine 19 [running]: runtime.throw({0xd5b1be?, 0xc00027e150?})
/usr/lib/go-1.18/src/runtime/panic.go:992 +0x71 fp=0xc000287be0 sp=0xc000287bb0 pc=0x43caf1
runtime.mapiternext(0xd55092?)
/usr/lib/go-1.18/src/runtime/map.go:871 +0x4eb fp=0xc000287c50 sp=0xc000287be0 pc=0x41866b
Havoc/cmd/server.(*Teamserver).EventBroadcast(0xc000328640, {0x0, 0x0}, {{0x10, {0x0, 0x0}, {0xc000316060, 0x13}, {0x0, 0x0}}, ...})
/mnt/c/Havoc/teamserver/cmd/server/teamserver.go:682 +0xaa fp=0xc000287d60 sp=0xc000287c50 pc=0xb1288a
Havoc/cmd.glob..func2.1({0xc000042310?, 0xc0000422a0?})
/mnt/c/Havoc/teamserver/cmd/server.go:50 +0x170 fp=0xc000287e68 sp=0xc000287d60 pc=0xb16570
Havoc/pkg/logr.Logr.ServerStdOutInit.func1()

2.opt client text encoding

@S4ntiagoP
Copy link
Contributor

tried it out and it works, the code looks sensible so looks good to me

@S4ntiagoP S4ntiagoP merged commit a022c50 into HavocFramework:dev Jul 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants