Commit Graph
427 Commits
Author SHA1 Message Date
FredApps 7e3843633a Keep the legacy MUTF-8 helper available only to parity tests (#2132) 2026-11-18 23:07:15 +07:00
Dylan M. Taylor 2098b6560a Gate the modified-UTF-8 helper to test builds 2026-11-18 10:15:58 -05:00
Dylan M. Taylor 2ab3f0ede8 Merge remote-tracking branch 'origin/main' into pr-2032 2026-11-18 09:14:42 -05:00
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
BFlat 00f426522c Merge pull request #2080 from Plastic-time/bugfix/r3.12-csharp-conversion-builtin-aliases
Follow-up to #2076, which stopped a program's own `App.String` being read as `string` but left two conversion operators unmatched against a .NET program's metadata: one to `System.Collections.Generic.List<String>`, and one to `String` in a type that also converts to an unrelated `Other.String`. A short type name in a conversion target is now looked up first in the enclosing types and namespaces among the types the program has; only when nothing there has that name is it read as the built-in (`String` as `string`).
2026-11-18 11:56:47 +07: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
Dylan M. Taylor dff5e7b75c Use shared read-only EVM bytecode and metadata inspection (#2038)
* Use shared read-only EVM inspection with app error compatibility

* Pin EVM inspection to reviewed-behavior lint refactor
2026-11-17 22:36:16 -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
BFlat 5d14417833 Merge pull request #2048 from Plastic-time/bugfix/r3.12-axml-typed-booleans
An Android manifest flag stored as an integer (`exported` = 0, `debuggable` = 1) was read as not set, so a component marked not exported could be reported as exported. Integer-typed values are now read as booleans as Android does, and only the un-namespaced `package` attribute names the package.
2026-11-18 05:55:43 +07:00
Dylan M. Taylor 70e4d98c68 Use shared Java class reader and JVM opcode decoder (#2033)
* Use shared Java class reader and JVM decoder with legacy parity coverage

* deps: drop duplicate workspace pins left by the main merge
2026-11-17 17:13:10 -05: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
Dylan M. Taylor dcd5187cd5 Use shared PCAP and per-frame protocol inspection (#2031)
* Use shared packet capture and per-frame protocol inspection

* Pin PCAP inspection to merged shared library

* Test shared PCAP truncation and public adapter parity
2026-11-17 16:21:57 -05:00
Dylan M. Taylor 13845b54c1 Use shared lenient ZIP inspection and bounded seekable reads (#2020)
* Route ZIP inspection and seekable reads through shared lenient parser

* deps: pin craft-libs to the merged shared revision
2026-11-17 16:18:53 -05:00
Dylan M. Taylor 4e99363dc5 Use shared WebAssembly inspection and validation reports (#2029)
* Use shared WebAssembly inspection with app error compatibility

* Cover WASM resource indexes and component partial reports against oracle

* deps: pin craft-libs to the merged shared revision
2026-11-17 15:45:37 -05:00
Dylan M. Taylor c2c462446e Merge current main and normalize dex consumer lockfile 2026-11-17 13:57:47 -05:00
Dylan M. Taylor f0ee15205f Merge current main and extend HAR consumer parity coverage 2026-11-17 12:59:15 -05:00
Dylan M. Taylor be8efd27fd Use shared span-preserving JSONC editor (#2026)
* Use shared span-preserving JSONC editor

* Pin JSONC editor to merged shared revision
2026-11-17 17:41:11 +01:00
Dylan M. Taylor 07559c5741 Merge remote-tracking branch 'origin/main' into refactor/shared-har 2026-11-17 11:30:17 -05:00
Dylan M. Taylor e0229453ca Use shared TAR and CPIO walkers while retaining app extraction policy (#2017) 2026-11-17 11:25:33 -05:00
Dylan M. Taylor 03cfa047ea Exercise DEX admission and shorty parity in retained oracle 2026-11-17 09:59:29 -05:00
Dylan M. Taylor 205a4d9199 Use shared DEX reader and Dalvik opcode decoder 2026-11-17 08:56:27 -05:00
Dylan M. Taylor c0d91cc967 Use shared HAR capture reader preserving app policy 2026-11-17 08:35:37 -05:00
Dylan M. Taylor 5979f9b13f Use shared Source Map v3 parser and lookup core (#2027) 2026-11-17 08:13:48 -05:00
Dylan M. Taylor a0b7304b40 Merge main retaining Mach-O and PE shared readers 2026-11-17 06:13:20 -05:00
Dylan M. Taylor 162b51b203 Use shared PE headers and bounded Rich header reader 2026-11-17 05:44:57 -05:00