Posts
Go: Keep multiple failures inspectable with errors.Join
Combine independent validation errors with errors.Join and check each cause with errors.Is without parsing the message.
November 13, 2026
Go: Distinguish missing separators from empty values with strings.Cut
Split a key-value string once, preserve later separators, and distinguish an empty value from a missing delimiter.
November 13, 2026
Go: Discard partial bytes when hex decoding fails
Handle encoding/hex.DecodeString errors before using decoded bytes, including valid prefixes followed by malformed input.
November 13, 2026
Go: Copy bytes.Buffer data before retaining a snapshot
See how bytes.Buffer.Bytes aliases unread data, and use bytes.Clone to retain an independent snapshot before changing the buffer.
November 13, 2026
DDI Central CVE-2026-19422: Patch Windows agent synchronization
Move DDI Central to build 6301 and verify console and Windows Node Agent versions after an authentication-bypass fix.
November 13, 2026
CVE-2026-107360: Patch safemode's template allow-list bypass
Match Red Hat Satellite and RHEL branches to fixed rubygem-safemode revisions and restrict untrusted template editing.
November 13, 2026
Apache HTTP/2 CVE-2026-119618: Check Exposure and Verify the Fix
Identify Apache HTTP/2 exposure, verify an upstream fix or vendor backport, and check the running service after rollout.
November 12, 2026
C++: Validate a whole identifier with regex_match
Require the entire input to match a small ASCII identifier pattern before reading captures.
November 12, 2026
C++: Use a composite key in an unordered map
Pair a custom equality operator with a hash that includes both fields of a lookup key.
November 12, 2026
C++: Split a list into batches with bounded next
Stop iterator advancement at the end of a range when the last batch is short.
November 12, 2026