From ce6e30f7272fd0c064ef52ac85cad1c0f05fd323 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Tue, 10 Feb 2026 08:26:49 +0000 Subject: feat: добавить библиотеку common с ресурсами и буферами вывода; обновить зависимости в nres и rsli MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/rsli/src/error.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crates/rsli/src/error.rs') diff --git a/crates/rsli/src/error.rs b/crates/rsli/src/error.rs index 056a13b..c2d5a08 100644 --- a/crates/rsli/src/error.rs +++ b/crates/rsli/src/error.rs @@ -14,6 +14,9 @@ pub enum Error { InvalidEntryCount { got: i16, }, + TooManyEntries { + got: usize, + }, EntryTableOutOfBounds { table_offset: u64, @@ -75,6 +78,7 @@ impl fmt::Display for Error { Error::InvalidMagic { got } => write!(f, "invalid RsLi magic: {got:02X?}"), Error::UnsupportedVersion { got } => write!(f, "unsupported RsLi version: {got:#x}"), Error::InvalidEntryCount { got } => write!(f, "invalid entry_count: {got}"), + Error::TooManyEntries { got } => write!(f, "too many entries: {got} exceeds u32::MAX"), Error::EntryTableOutOfBounds { table_offset, table_len, -- cgit v1.2.3