matcha
matcha copied to clipboard
BUG: Unchecked write error in writeNewFormatLength()
Describe the bug: Buffer write errors not checked in writeNewFormatLength() at pgp/yubikey.go line 412.
To reproduce:
- Trigger OpenPGP packet construction
- If buffer write fails, error ignored
- 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
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.
Closing due to inactivity. Reopen if still relevant.