0.31.0: hardening and correctness pass across mux, codec, AACS/CSS, UDF/MPLS/CLPI, recovery, drive/SCSI, labels, and I/O
Library-wide review-and-fix pass: tightened AACS keydb/handshake/variant handling and trailing-partial-unit policy, corrected MPLS mark offset and added UDF allocation bounds, hardened the mux/codec framing and M2TS paths, guarded SCSI READ CAPACITY short transfers and unified error mapping, added overflow guards on untrusted disc input, and made prefetch shutdown deterministic. Release profile now builds with thin LTO + single codegen unit.
This commit is contained in:
+7
-1
@@ -8,11 +8,17 @@
|
||||
//! disc.rip(&mut session, 0, output, |event| {
|
||||
//! match event.kind {
|
||||
//! EventKind::BytesRead { bytes, total } => update_progress(bytes, total),
|
||||
//! EventKind::ReadError { sector, .. } => log_error(sector),
|
||||
//! EventKind::SectorSkipped { sector } => log_skip(sector),
|
||||
//! EventKind::BatchSizeChanged { new_size, .. } => note_recovery(new_size),
|
||||
//! _ => {}
|
||||
//! }
|
||||
//! });
|
||||
//! ```
|
||||
//!
|
||||
//! Note: the library currently emits only `BytesRead`, `SectorSkipped`,
|
||||
//! and `BatchSizeChanged`. The other [`EventKind`] variants are part of
|
||||
//! the stable event vocabulary for consumers (and future emit sites) but
|
||||
//! are not produced by the library today.
|
||||
|
||||
use crate::error::Error;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user