Commit Graph
244 Commits
Author SHA1 Message Date
RRFZ 49bd60ae81 fix(formats): skip a byte order mark where a SQLite token starts (R3.12) 2026-11-18 06:24:15 -05:00
RRFZ 2f340063f6 fix(formats): read plus-prefixed blob and non-ASCII bare SQLite defaults (R3.12)
A unary plus before X'..' keeps the blob, as SQLite drops the plus. Bare default words take non-ASCII characters and a later dollar sign, as SQLite identifiers do. The comment-after-e fixture uses 0x1e--, which SQLite creates.
2026-11-18 05:48:46 -05:00
BFlat 26e977bb85 Merge pull request #2108 from Plastic-time/bugfix/r3.12-sqlite-tight-type-and-clause-tokens
SQLite accepts a `CREATE TABLE` with no spaces between its parts, and reading one went wrong in three ways. A constraint written straight after a type (`REAL(8)CHECK(...)`) became part of the type, which changed how the column's values were read (REAL as INTEGER, BLOB as TEXT). A quoted type straight after a column name (`id"INTEGER" PRIMARY KEY`) became part of the name, so the column wasn't seen as the row's key. And `DEFAULT-5`, `STRICT;` or `WITHOUT ROWID;` weren't recognised. Names, types and clauses are now split wherever SQLite splits them, and only its five whitespace characters count as space.
2026-11-18 17:06:48 +07:00
RRFZ 90b447797a Treat only SQLite's ASCII whitespace as token breaks in CREATE TABLE parsing (R3.12) 2026-11-18 04:18:10 -05:00
RRFZ 66804ba597 Cover alias-expanded IntPtr, UIntPtr and dynamic controls in C# terminal fallback tests 2026-11-18 04:05:35 -05:00
RRFZ 50212b66f0 Keep alias-expanded native integer args exact-match-only 2026-11-18 02:50:58 -05:00
RRFZ 631191861b Tokenize tight SQLite CREATE TABLE types, defaults, and table options (R3.12) 2026-11-18 02:48:41 -05:00
BFlat 642179c6ab Merge pull request #2093 from Plastic-time/bugfix/r3.12-csharp-contextual-keywords-and-fallback
Follow-up to #2080. `nint`, `nuint` and `dynamic` are only keywords when nothing in scope has that name, but a conversion operator to a program's own type called `nint` or `dynamic` was read as the built-in and reported as missing; such a name is now looked up among the program's types first. An explicit `System.IntPtr` keeps meaning the built-in. And a conversion to `List<String>` where `String` is another namespace's type, imported without `using System;`, is matched to that type before `String` is tried as `string`.
2026-11-18 14:11:50 +07:00
RRFZ c888defe2c Preserve explicit System.IntPtr/UIntPtr identity across contextual keyword reconciliation 2026-11-18 01:27:16 -05:00
RRFZ 9e7ffa3f47 Propagate generic context to CLI events and method-body tokens (R3.12) 2026-11-18 01:25:15 -05:00
RRFZ 8e84985f6f Resolve C# contextual type keywords and scope-first generic fallback (R3.12) 2026-11-18 01:19:13 -05:00
RRFZ 15eb535211 Format nested generic CLI signatures per segment arity (R3.12) 2026-11-18 00:18:42 -05:00
RRFZ bd8e224300 Track generic arity, predefined keywords, and resolved inner arguments in C# conversion lookup 2026-11-17 23:15:49 -05:00
RRFZ 4fb286a00c Resolve unshadowed CLR built-in aliases in C# conversion targets (R3.12) 2026-11-17 22:43:25 -05:00
RRFZ 490ff2f6d9 Normalize C# nested, ref, built-in-named, and array types in reconciliation (R3.12)
- Strip `global::` and convert metadata `/` nested-type separators in `norm_type`
  as well as `norm_type_qualified` so method parameters taking nested or
  `global::`-qualified types reconcile without mismatch.
- Emit `ref ` only for leading `ref` modifiers followed by whitespace and a type
  start, avoiding spurious spaces inside identifiers containing `ref` or on `@ref`
  value types.
- Keep non-`System` types named like CLR built-ins (such as `App.String`) distinct
  from C# built-in keywords in qualified conversion-target comparisons.
- Collapse multi-dimensional zero-lower-bound CLI array shapes (`[0...,0...]`) to
  C# rank commas (`[,]`) while preserving rank-1 `[0...]` and non-zero/sized bounds.
2026-11-17 21:36:27 -05:00
BFlat 743a2f6a93 Merge pull request #2062 from Plastic-time/bugfix/r3.12-sqlite-adjacent-table-constraints
SQLite lets table constraints follow each other without a comma (`UNIQUE(v) PRIMARY KEY(id)`) and lets a key column sit in extra parentheses (`PRIMARY KEY((id))`). Both the rowid-alias check and the WITHOUT ROWID key layout now find the primary key in those forms, so rows from such tables show their key values in the right columns.
2026-11-18 08:18:57 +07:00
RRFZ e0a74ce298 Preserve rowid aliases for table-level PRIMARY KEY AUTOINCREMENT 2026-11-17 19:49:10 -05:00
RRFZ 4d55d6fcae Read SQLite primary keys across adjacent table constraints 2026-11-17 19:23:31 -05:00
BFlat 4a6eb485c7 Merge pull request #2054 from Plastic-time/bugfix/r3.12-csharp-verbatim-checked-conversion
Follow-up to #2049. A conversion operator whose target type is named `@checked` was read as a checked operator with no target type, because the `@` was lost before the name was compared with the `checked` keyword. The keyword is now recognised only when it was written without `@`.
2026-11-18 07:14:23 +07:00
BFlat 9dff98c696 Merge pull request #2051 from Plastic-time/bugfix/r3.12-keyed-archive-nsbytes-nsdate
In an Apple keyed archive, a string whose bytes were stored as a reference to another object was shown as raw data, and a date stored as a whole number of seconds was not shown as a date. References are now followed, within the existing byte and node limits, and integer times are formatted as dates.
2026-11-18 07:02:40 +07:00
RRFZ 9c2dc47376 Accept non-UID scalar reached on 16th UID hop in keyed archive 2026-11-17 18:27:14 -05:00
RRFZ da5cc8d372 Check kw flag before stripping checked in C# conversion operators 2026-11-17 18:12:14 -05:00
RRFZ 10507ddbc8 Share plist apple_date_int_iso bound for integer NS.time 2026-11-17 17:57:20 -05:00
BFlat 7877d3bf9c Merge pull request #2050 from Plastic-time/bugfix/r3.12-squashfs-table-bounds
The SquashFS reader ended the inode table at the directory table and the directory table at the fragment or id table. An image with an export or xattr table in between, or with its tables in another order, was read past the table's end and reported as damaged. Each table now ends at the nearest following table of the six, or at the end of the filesystem.
2026-11-18 05:55:57 +07:00
BFlat 743d896094 Merge pull request #2049 from Plastic-time/bugfix/r3.12-csharp-verbatim-identifiers
A C# member or parameter named with a verbatim identifier (`@class`, `@namespace`, `@event`, `@operator`) had its `@` dropped and was then read as the keyword, which opened fake scopes and changed member kinds. Verbatim identifiers are now kept as names and never matched as keywords or modifiers.
2026-11-18 05:55:50 +07:00
RRFZ 0dbb54fb49 Resolve indirect NS.bytes and integer NS.time in keyed archives (R3.12) 2026-11-17 16:36:46 -05:00
RRFZ 2815c3d8fa Bound SquashFS inode and directory tables across all superblock layouts (R3.12) 2026-11-17 16:36:46 -05:00
RRFZ ea626f3fd7 Treat C# verbatim @identifiers as names instead of keywords (R3.12) 2026-11-17 16:36:46 -05:00
RRFZ 51e94ed831 Decode integer-typed booleans and unnamespaced manifest package in AXML (R3.12) 2026-11-17 16:36:45 -05:00
BFlat 854f50e129 Merge pull request #2014 from Plastic-time/bugfix/r3.12-sqlite-parenthesized-primary-key
SQLite accepts a primary key written as PRIMARY KEY((a), b) in a WITHOUT ROWID table. The reader stopped at the first closing parenthesis and could not work out the stored row layout. It now reads to the matching end of the key list, finds the column inside redundant parentheses and uses its outermost collation.
2026-11-17 12:02:46 +07:00
BFlat ecaa1027e6 Merge pull request #2005 from Plastic-time/bugfix/r3.12-dos-extended-pe-signature
The DOS header report took any "PE" prefix at the extended-header offset for a Windows extension, including a cut-off signature or "PENA" in unrelated bytes. The full four-byte signature is now required. A complete signature that overlaps the DOS header, as hand-packed small executables have, is still reported.
2026-11-17 12:02:08 +07:00
BFlat cf749a926d Merge pull request #2009 from Plastic-time/bugfix/r3.12-java-truncated-attributes
A Java class file that ended partway through a class-level attribute was read with no warning, so source or signature details after the cut were silently missing. The reader now keeps the attributes it could read and warns when the table ends early.
2026-11-17 11:48:08 +07:00
BFlat e32b09b910 Merge pull request #2007 from Plastic-time/bugfix/r3.12-tar-pax-size-precedence
A TAR member with a valid PAX size still stopped the archive walk when its superseded size field held invalid octal, so later members vanished from the listing. The PAX size is now read first for ordinary members, and the old field is read and checked only when no override applies.
2026-11-17 11:46:35 +07:00
RRFZ 6163368bea Keep PE signatures that overlap the DOS header 2026-11-16 23:46:20 -05:00
BFlat 11fad9bb2e Merge pull request #2004 from Plastic-time/bugfix/r3.12-ipv6-no-next-header
An IPv6 packet whose Next Header is 59 (no next header) got an invented "other" transport record that included any bytes after the header. Transport decoding now stops at 59, also when an extension header supplies it; other protocol values are decoded as before.
2026-11-17 11:45:41 +07:00
BFlat 75b078888b Merge pull request #2006 from Plastic-time/bugfix/r3.12-indexed-map-source-inventory
An indexed source map that also carried a top-level `sources` list reported those names as part of the bundle although no section maps to them, and they could push a real source out of a full inventory. An indexed map now keeps only its file name and takes its sources from its sections.
2026-11-17 11:42:21 +07:00
RRFZ d2953f60dd Read parenthesized SQLite primary-key columns (R3.12) 2026-11-16 23:34:23 -05:00
BFlat b87fce648a Merge pull request #2001 from Plastic-time/bugfix/r3.12-macho-complete-command-paths
The Mach-O readers took the whole remainder of a load command as a library name or runpath when its path had no terminating NUL, so a command that never finished its string still supplied dependency evidence. The NUL must now be inside the command, in both summary views.
2026-11-17 11:28:14 +07:00
RRFZ d29465c20b Use PAX sizes before reading TAR member size fields (R3.12) 2026-11-16 23:21:43 -05:00
RRFZ 420552ff74 Report truncated Java class attribute tables (R3.12) 2026-11-16 23:19:02 -05:00
RRFZ 0b1a643944 List sources from the section maps of an indexed source map (R3.12) 2026-11-16 23:18:59 -05:00
RRFZ 7343ab0f40 Require the complete PE signature in DOS header reports (R3.12) 2026-11-16 23:18:58 -05:00
RRFZ 3836b5bd52 Stop IPv6 packet decoding at No Next Header (R3.12) 2026-11-16 23:18:57 -05:00
BFlat 961078950d Merge pull request #2000 from Plastic-time/bugfix/r3.12-zip-legacy-zstd
A ZIP member using the original Zstandard method number, 20, was listed with an unknown method and could not be extracted or found in firmware scans. It now goes through the same name, bounded decoder and archive discovery as the current number, 93.
2026-11-17 11:10:12 +07:00
BFlat 67c70dfb14 Merge pull request #1998 from Plastic-time/bugfix/r3.12-sqlite-key-collations
In a WITHOUT ROWID table whose primary key names one column twice with different collations, SQLite stores a key slot for each. The reader collapsed them into one and so read the next column from the wrong slot. A repeated key term is now dropped only when its column and effective collation are already present.
2026-11-17 11:06:27 +07:00
RRFZ d433b6cdd0 Preserve Mach-O import ordinals when a library path is invalid 2026-11-16 23:05:20 -05:00
RRFZ 0586649778 Require terminated paths in Mach-O load commands (R3.12) 2026-11-16 22:49:31 -05:00
RRFZ 29badae7c9 Read the legacy Zstandard method in ZIP archives (R3.12) 2026-11-16 22:49:29 -05:00
RRFZ da974744c0 Keep distinct primary-key collations in SQLite row layouts (R3.12) 2026-11-16 22:49:27 -05:00
BFlat 5acce07c67 Merge pull request #1994 from Plastic-time/bugfix/r3.12-android-provider-sdk-default
An Android manifest with a minimum SDK of 23 and no target SDK reported a provider as exported by default. Android takes the minimum SDK as the target when none is given, and from 17 a provider is private by default. Export inference now uses the minimum SDK when the target is omitted; explicit targets and explicit exported values are unchanged.
2026-11-17 10:44:47 +07:00