← back
Notes
Short writeups on bugs I found and fixed in open source. Each one links to the merged PR.
- wailsapp/wails
A nil panic in Wails when you Quit before Run
Someone called Application.Quit on a wails app before Run had built the inner application. The framework punished it with a panic. Easy fix.
- jackc/pgx
A stale context bug in pgx's connectPreferred
Reading pgconn's connection setup, I found a context variable leaking out of a for-loop and into the fallback path, where it would already be expired.
- nats-io/nats.go
Empty tokens slipping past nats.go's KV key validator
Keys like foo..bar contain an empty token, which makes them invalid NATS subjects. The client validator missed them. The server then returned a misleading error.