Validate GDSII record sizes through one fallible path
Route every record read through size validation and report malformed payloads as parse errors instead of panicking. Apply metadata size constraints through the Record trait, hide Arrow reader internals, and remove unused wrappers and scratch code. Add coverage for direct, skipped, and payload reads, truncated buffers, and FFI error offsets.
This commit is contained in:
parent
a384bb2f89
commit
54aa757678
1 changed files with 168 additions and 150 deletions
|
|
@ -206,7 +206,6 @@ mod tests {
|
|||
fn test_parse_bitarray() {
|
||||
use crate::basic::parse_bitarray;
|
||||
|
||||
//assert!(parse_bitarray(b"59") == 13625);
|
||||
assert_eq!(parse_bitarray(b"\x00\x00").unwrap().1, [false; 16]);
|
||||
assert_eq!(parse_bitarray(b"\xff\xff").unwrap().1, [true; 16]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue