matcha icon indicating copy to clipboard operation
matcha copied to clipboard

BUG: Unchecked write error in writeNewFormatLength()

Open andrinoff opened this issue 7 months ago • 2 comments

Describe the bug: Buffer write errors not checked in writeNewFormatLength() at pgp/yubikey.go line 412.

To reproduce:

  1. Trigger OpenPGP packet construction
  2. If buffer write fails, error ignored
  3. Invalid packet generated silently

Expected behavior: Check write errors and propagate them.

Additional context:

  • File: pgp/yubikey.go
  • Line: 412
  • Severity: Medium - silent data loss
  • Fix: Add error checks on buffer writes

andrinoff avatar Apr 16 '26 20:04 andrinoff

This has had no activity for 30 days. It will be closed in 14 days unless updated. Comment or remove the stale label to keep it open.

floatpanebot avatar May 17 '26 05:05 floatpanebot

Closing due to inactivity. Reopen if still relevant.

floatpanebot avatar May 31 '26 06:05 floatpanebot