Skip to content

Instantly share code, notes, and snippets.

View workturnedplay's full-sized avatar

workturnedplay

View GitHub Profile
@workturnedplay
workturnedplay / histogram.diff
Created July 4, 2026 19:43
git diff, wild! don't forget to do this: $ git config --global diff.algorithm histogram //HEAD was commit: 6320995fba1b377e44a3b37bdc1ca324dcb3d34e in dnsbollocks
diff --git a/internal/dnsbollocks/platform_windows.go b/internal/dnsbollocks/platform_windows.go
index c514ab5..d5c01d8 100644
--- a/internal/dnsbollocks/platform_windows.go
+++ b/internal/dnsbollocks/platform_windows.go
@@ -2570,480 +2570,20 @@ func (s *Server) loadMainConfig() error {
s.fileWriter.SetExtraSafety(resolvedCfg.ExtraSafety) //uses newly loaded config settings ie. cfg.ExtraSafety
- tagWebUIUseTLS := getJSONTagByOffset(unsafe.Offsetof(Config{}.WebUIUseTLS))
- tagWebUIForceTLS := getJSONTagByOffset(unsafe.Offsetof(Config{}.WebUIForceTLSOnNonLocalhost))
@workturnedplay
workturnedplay / Go.lang.md
Last active July 24, 2026 12:25
why not X lang

Why not Go lang?

(Claude Code; Opus 4.6)

Windows Stack Memory Corruption Investigation

Summary

Runtime stack memory corruption on Windows amd64 causes a DEP violation (Exception 0xc0000005 code 0x8) when a goroutine jumps to a corrupted return address. The corruption always overwrites the high 32 bits of a return address, replacing a valid code pointer (e.g. 0x00007ff6XXXXXXXX) with a value whose high 32 bits are a