Skip to content

v1.2.1 — Fix unsafe.Pointer vet warnings

Choose a tag to compare

@fermat-tech fermat-tech released this 11 Jul 05:41
· 6 commits to main since this release

What's fixed

  • go vet clean — the two "possible misuse of unsafe.Pointer" warnings in the clipboard code (clipboard_windows.go) are resolved by using unsafe.Add instead of a direct uintptr→unsafe.Pointer conversion, which vet cannot statically verify as safe even though the underlying memory (Win32 global heap) is not GC-managed.
  • Added a clipboard round-trip regression test (write + read back, including Unicode) to guard this code path going forward.

No behavior changes — copy/paste still works exactly as before.

Binaries

File Target
winless_windows_amd64.exe Windows x64 (most PCs)
winless_windows_arm64.exe Windows on ARM (Surface Pro X, Copilot+ PCs)