public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH proxmox-backup 0/2] fix potential panic on key decryption
@ 2026-10-21 16:41 Christian Ebner
  2026-10-21 16:41 ` [PATCH proxmox-backup 1/2] pbs-key-config: drop useless length check enforce by type Christian Ebner
  2026-10-21 16:41 ` [PATCH proxmox-backup 2/2] fix: pbs-key-config: do not panic on short decrypted keys Christian Ebner
  0 siblings, 2 replies; 3+ messages in thread
From: Christian Ebner @ 2026-10-21 16:41 UTC (permalink / raw)
  To: pbs-devel

This patches address a useless key length check on a fixed size array
slice as well as an insufficient length check when decrypting the key
data via KeyConfig::decrypt(). The latter will result in a panic when
source and target length mismatch and is now handled as error.

Christian Ebner (2):
  pbs-key-config: drop useless length check enforce by type
  fix: pbs-key-config: do not panic on short decrypted keys

 pbs-key-config/src/lib.rs | 43 +++++++++++++++++++++++++++++++--------
 1 file changed, 35 insertions(+), 8 deletions(-)

-- 
2.47.3





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-10-21 16:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-21 16:41 [PATCH proxmox-backup 0/2] fix potential panic on key decryption Christian Ebner
2026-10-21 16:41 ` [PATCH proxmox-backup 1/2] pbs-key-config: drop useless length check enforce by type Christian Ebner
2026-10-21 16:41 ` [PATCH proxmox-backup 2/2] fix: pbs-key-config: do not panic on short decrypted keys Christian Ebner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal