public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH pxar 0/3] pxar: make payload reference offset checks stricter
@ 2025-08-27  9:46 Christian Ebner
  2025-08-27  9:46 ` [pbs-devel] [PATCH pxar 1/3] tree wide: fix formatting via `cargo fmt` Christian Ebner
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Christian Ebner @ 2025-08-27  9:46 UTC (permalink / raw)
  To: pbs-devel

This patch series aims to block the encoding of possible corrupt split
pxar archives due to the payload reference offsets not being strict
monotonically increasing. This is a requirement for the sequential
decoder to be able to restore the contents from a sequential stream.

This should also help to detect more corrupt encodings as reported in
the community forum and therefore narrow down the still lingering
logical issue, still under investigation.

First two patches are style cleanups only, the third contains the
stricter encoder check.

[0] https://forum.proxmox.com/threads/170211/

pxar:

Christian Ebner (3):
  tree wide: fix formatting via `cargo fmt`
  tree wide: elide explicit lifetimes reported by cargo clippy
  encoder: improve consistency check for payload reference offsets

 examples/pxarcmd.rs     |  2 +-
 src/accessor/aio.rs     |  4 +--
 src/accessor/mod.rs     |  6 ++--
 src/accessor/read_at.rs |  6 ++--
 src/accessor/sync.rs    |  8 ++---
 src/decoder/aio.rs      |  2 +-
 src/decoder/mod.rs      |  6 ++--
 src/decoder/sync.rs     |  2 +-
 src/encoder/aio.rs      |  4 +--
 src/encoder/mod.rs      | 76 +++++++++++++++++++++++++++++------------
 src/encoder/sync.rs     |  4 +--
 src/lib.rs              |  2 +-
 tests/compat.rs         |  2 +-
 tests/simple/fs.rs      |  8 ++---
 tests/simple/main.rs    |  4 +--
 15 files changed, 85 insertions(+), 51 deletions(-)


Summary over all repositories:
  15 files changed, 85 insertions(+), 51 deletions(-)

-- 
Generated by git-murpp 0.8.1


_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel


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

end of thread, other threads:[~2025-08-27 12:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-27  9:46 [pbs-devel] [PATCH pxar 0/3] pxar: make payload reference offset checks stricter Christian Ebner
2025-08-27  9:46 ` [pbs-devel] [PATCH pxar 1/3] tree wide: fix formatting via `cargo fmt` Christian Ebner
2025-08-27  9:46 ` [pbs-devel] [PATCH pxar 2/3] tree wide: elide explicit lifetimes reported by cargo clippy Christian Ebner
2025-08-27  9:46 ` [pbs-devel] [PATCH pxar 3/3] encoder: improve consistency check for payload reference offsets Christian Ebner
2025-08-27 12:36 ` [pbs-devel] applied-series: [PATCH pxar 0/3] pxar: make payload reference offset checks stricter Wolfgang Bumiller

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