Commit Graph
1162 Commits
Author SHA1 Message Date
RRFZ 0a71d49988 Claim R3.12 task: alias-expanded nint fallback 2026-11-18 02:29:36 -05:00
RRFZ 2d856f34a8 Preserve module identity for awaited sequence dynamic imports 2026-11-18 02:23:20 -05:00
RRFZ c731e50078 Claim R3.12 task: await sequence import 2026-11-18 02:23:20 -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
BFlat bd0f0235c7 Merge pull request #2090 from Plastic-time/bugfix/r3.11-dataflow-mode-registers
Tracing where a value goes in a function leaves out the stack pointer and program counter, which every instruction touches. On 32-bit ARM those are `r13` and `r15`, which weren't on the list, so each `push`, `pop` and stack store added them to the graph as if they carried data. They are now left out for ARM and Thumb only; on x86-64, where `r13` and `r15` are ordinary registers, nothing changes. A 32-bit x86 call also no longer lists three register names that are never used there.
2026-11-18 13:58:47 +07:00
BFlat 51f1f2b34f Merge pull request #2092 from Plastic-time/bugfix/r3.12-dotnet-member-body-generic-context
Fields, properties and local variables of a generic .NET type already showed its type parameters by name, but an event's type and everything a method body refers to (calls, field accesses, the listed instructions) showed them as numbered placeholders: `System.Action<!0, !1>`, `Dictionary<!1, !!0>::Add(!0, !1)`, `box !1`. They are now read with the enclosing type's and method's parameters, and a call on a generic type shows the argument types of the type it is called on.
2026-11-18 13:58:46 +07:00
BFlat f1e70b10a2 Merge pull request #2088 from Plastic-time/bugfix/r1.5-gdb-mi-framing
A console command sent to GDB with a line break in it was written as two lines, so its second line ran as a command of its own; line breaks, tabs and other control characters are now escaped. A result that arrived late from an earlier command that had timed out could be taken as the current command's result or leave its error behind; only the result carrying the current command's number counts now. A stray `}` or `]` in a stop record no longer hides the fields after it, and `\a`, `\b`, `\f`, `\v` and `\xHH` in GDB's output are decoded.
2026-11-18 13:54:02 +07:00
BFlat f6c6543713 Merge pull request #2089 from Plastic-time/bugfix/r3.12-js-fallback-caps-and-truncation
When a script can't be parsed, a simpler reader lists what it can from the script's words. It listed the address of a `fetch("https://…")` call twice and repeated an address for every time it was written; it stopped noticing addresses at all after 4,000 other strings; and when its lists of strings, IPC uses or exposed names were full it dropped the rest without saying so. Each address is now listed once, addresses are found however many strings came first, and a list that was cut is named as cut.
2026-11-18 13:53:12 +07:00
RRFZ 5dc919fd74 Strip trailing dots from recovered module and web-script segments and match known module extensions case-insensitively (R3.12) 2026-11-18 01:46:44 -05:00
BFlat 3f8e1eb3de Merge pull request #2086 from Plastic-time/bugfix/r2.2-qoder-skills-and-windows-tilde
Someone who moves Qoder's configuration folder with `QODER_CONFIG_DIR` got its settings written there but the skill written under `~/.qoder`, where their Qoder no longer looks; both now go to the folder the variable names. On Windows, a path given in such a variable as `~\folder` was taken as a folder literally named `~` inside the home folder; it is now the home folder, as `~/folder` already was.
2026-11-18 13:43:33 +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 5743ae32aa Claim R3.12 C# contextual keywords and generic fallback follow-up 2026-11-18 01:19:13 -05:00
RRFZ 2a5af743a1 Filter ARM32/Thumb SP and PC in value flow and canonicalize x86 call clobbers (R3.11)
- Scope `dataflow::ignored(mode, r)` so `"r13"` and `"r15"` are filtered as SP/PC bookkeeping only in `Mode::A32` and `Mode::T32`, preserving `r14` scratch reuse on ARM and general-purpose `r13`/`r15` reaching definitions on `Mode::X64`.
- Trim the fallback 32-/16-bit x86 `clobbered` list in `dataflow::def_use` to canonical `&["rax", "rcx", "rdx"]`.
- Add `dataflow_mode_registers` regressions and update `docs/ROADMAP.md` and `docs/STATUS.md`.
2026-11-18 01:17:08 -05:00
RRFZ 6ac0c21454 Align JavaScript lexer-fallback list caps, URL deduplication, and truncation reporting with syntax-tree pass (R3.12) 2026-11-18 01:14:09 -05:00
BFlat d2f31c11ac Merge pull request #2087 from Plastic-time/bugfix/r3.12-gitignore-pattern-rules
Reading a source folder with its `.gitignore` files applied differed from git in four ways. A pattern starting with a backslash to mean a literal `*`, `[` or `?` was read as a wildcard. A name ending in an escaped space lost the space. `**` inside a name (`a**b.js`) crossed folders, where git treats it as one `*`. And a file under an ignored folder could be brought back by a later `!` rule, which git doesn't allow. Each now matches what `git check-ignore` reports.
2026-11-18 13:04:11 +07:00
RRFZ 2db47e2022 Keep colon-containing Windows tilde tails rooted under home 2026-11-18 01:02:07 -05:00
BFlat f0616948db Merge pull request #2085 from Plastic-time/bugfix/r3.12-dotnet-nested-generic-signatures
For a type nested in a generic type, .NET metadata lists the type arguments of the whole chain together. They were all written after the last name, so `Outer<int>.Inner` was shown as ``Outer`1/Inner<int>`` and `Outer<string>.Inner2<int>` as ``Outer`1/Inner2<string, int>``, and comparing C# source with the program reported such methods as different. Each part of the name now gets the arguments it declares. When the counts don't add up (obfuscated metadata), the arguments are kept together at the end as before.
2026-11-18 13:01:23 +07:00
BFlat 4a66500304 Merge pull request #2083 from Plastic-time/bugfix/r3.12-js-cooked-template-literals
A backtick string with no `${}` in it is a plain string, but several readers took its text as written in the source, escapes and all, or ignored it: ``require(`node\x3afs`)`` was recorded as that spelling, not `node:fs`, and a route, a preload setting or a bundle's module id written with backticks was missed. One helper now reads a quoted string or such a template by its value everywhere a string is expected. A template with an invalid escape, which is a syntax error unless tagged, is no longer reported as text.
2026-11-18 12:57:03 +07:00
BFlat 768d24a49e Merge pull request #2084 from Plastic-time/bugfix/r3.11-arm-pc-literal-refs
32-bit ARM code keeps constants and addresses in small pools beside the code and loads them with `ldr rX, [pc, #off]`. Those loads recorded no reference, so strings, data and imported functions reached that way had no cross-references, and the stubs that jump to an imported function (`ldr pc, [pc, #off]`) weren't recognised as imports. The address each such load reads is now recorded, the stubs are named after the function they jump to, and the pseudo-C shows these 32-bit loads as `uint32_t`, not `uint64_t`.
2026-11-18 12:46:33 +07:00
RRFZ 13947d37ec Follow QODER_CONFIG_DIR for Qoder skills and expand Windows ~\ paths in setup (R2.2) 2026-11-18 00:33:40 -05:00
BFlat e05b3b7242 Merge pull request #2082 from Plastic-time/bugfix/r3.13-share-path-collision-key
Recovering a bundle's modules and saving a capture's scripts each had their own copy of the code that decides whether two paths are one file on a disk that ignores case; both now use the one in the js crate. That key also treats `ß` and `SS` as the same, as a Mac disk does. And a file planned at a path that another file needs as a folder (`pkg.js` beside `pkg.js/child.js`) is renamed whichever of the two comes first, where the later one used to fail to write.
2026-11-18 12:21:45 +07:00
RRFZ 15eb535211 Format nested generic CLI signatures per segment arity (R3.12) 2026-11-18 00:18:42 -05:00
RRFZ a0ea1bc443 Honour gitignore backslash escapes, quoted trailing spaces, globstar segments, and excluded parent directories in Ignore (R3.12) 2026-11-18 00:09:09 -05:00
RRFZ 56e4c4478d Record ARM32 and Thumb PC-relative literal references and GOT jump slots (R3.11) 2026-11-18 00:06:33 -05:00
RRFZ e87104f45e Escape GDB/MI C-strings, clamp malformed tuple delimiters, and isolate command tokens (R1.5)
- Escape `\n`, `\r`, `\t`, and remaining control characters (as fixed three-digit octal byte escapes) in `quote`, and decode standard C escapes (`\a`, `\b`, `\f`, `\v`) plus `\xHH` hex byte escapes in `unquote` so console commands and stderr log lines stay single-line MI records and round-trip cleanly.
- Clamp unmatched closing braces and brackets at nesting depth zero in `fields` so malformed tuple delimiters outside quotes cannot hide subsequent top-level MI fields such as `reason`.
- Normalize CRLF line endings in `drain` and pass `expected_token` to `absorb` so late or untokenized result records from other commands cannot taint `c.result` or `c.error`, while clearing stale errors on non-error records in `take_output` and still recording `^exit`.
2026-11-18 00:02:12 -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
BFlat 2a96867125 Merge pull request #2081 from Plastic-time/bugfix/r3.11-sbpf-ja32-and-jump-opcodes
In eBPF and Solana programs, `ja32` (opcode 0x06) is an unconditional jump whose distance is in the 32-bit immediate. It was decoded as a conditional branch using the 16-bit offset, so the jump went to the wrong place and the code after it looked reachable. It is now a plain jump to the right target. Three opcodes that no version defines (0x0d, 0x0e, and 0x9d before version 2) were read as `ja` or `exit`; they are now shown as unknown, while version 2's `return` (0x9d) is kept.
2026-11-18 11:56:40 +07:00
RRFZ 0bc9711079 Claim R1.5: gdb-mi-framing 2026-11-17 23:38:06 -05:00
RRFZ 1904af648c Share full case-folded path and parent-directory collision keys across JS recovery and web script layout (R3.13) 2026-11-17 23:18:44 -05:00
RRFZ 6f6442e2d6 Decode sBPF ja32 (0x06) as a 32-bit jump and reject invalid BPF_X jump/exit opcodes (R3.11) 2026-11-17 23:17:01 -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
BFlat 5e555c9c41 Merge pull request #2079 from Plastic-time/bugfix/r3.11-thumb-symbol-and-pointer-targets
A 32-bit ARM shared library has no entry point, so it was always decoded as ARM code, also when it was built as Thumb, and came out as nonsense. The mode is now taken from its function symbols, exports and function starts: Thumb when most of them carry the Thumb bit. In Thumb code that bit is also cleared wherever an address names code (functions that never return, exports, the entry point, code pointers and pointers found in data), so those match the functions they point at; on other processors an odd address is left as it is.
2026-11-18 11:15:34 +07:00
BFlat 50a9e7aa52 Merge pull request #2067 from Plastic-time/bugfix/r2.2-yaml-empty-and-flow-blocks
Setup refused a Hermes `config.yaml` whose server list was written `{ }`, `Null` or `NULL`, though each means an empty list; those are accepted now. A server entry written as a flow mapping over several lines can't be bounded by indentation, and editing one left its closing brace behind: setup and uninstall now stop and say to edit the file by hand rather than guess. An entry whose flow value is complete on its own line is edited as before, and its siblings are left byte for byte as they were.
2026-11-18 11:05:55 +07:00
BFlat c66f36f8db Merge pull request #2074 from Plastic-time/bugfix/r3.12-js-recover-case-collisions
Two modules recovered from a bundle whose paths differed only in letter case (`X.js` and `x.js`) were given both names. On Windows and on a default Mac disk those are one file, so writing the second was refused and the module was left out. Names are now compared without regard to case, also after a hash or a number has been added, so the second module gets a name of its own.
2026-11-18 10:53:09 +07:00
RRFZ 4fb286a00c Resolve unshadowed CLR built-in aliases in C# conversion targets (R3.12) 2026-11-17 22:43:25 -05:00
BFlat b9f9a2a9ea Merge pull request #2078 from Plastic-time/bugfix/r3.13-share-secret-redaction-helpers
The live browser and Electron capture tools had their own copy of the code that hides declared secrets, and only that copy hid two secrets that overlap: in a network recording or a stand-in built from one, `Bearer abc` and `abc123456789` in `Bearer abc123456789` left `123456789` showing. All three now use one implementation, in the analysis crate, which hides overlapping matches as one.
2026-11-18 10:39:21 +07:00
RRFZ ee4219a80d Read cooked template-literal values across JavaScript fact and bundle extraction (R3.12) 2026-11-17 22:37:16 -05:00
RRFZ e939a5dad2 Preserve Thumb evidence across mixed symbol/export tag bits and escape STATUS pipe (R3.11) 2026-11-17 22:36:38 -05:00
BFlat 77ca096874 Merge pull request #2076 from Plastic-time/bugfix/r3.12-csharp-type-normalization
Matching C# source declarations against a .NET program's metadata reported methods as different when they were the same, in four cases: a parameter of a nested type or one written with `global::`; any type or namespace with "ref" in its name (`Preference` became `Pref erence`); a type of the program's own named like a built-in (`App.String` was read as `string`); and arrays of two or more dimensions, which metadata writes as `[0...,0...]` and C# as `[,]`. Each is now read the same way on both sides.
2026-11-18 10:28:02 +07:00
BFlat 1e55067102 Merge pull request #2077 from Plastic-time/bugfix/r3.13-web-scripts-layout-collisions
Saving the scripts of a web capture planned two files for URLs that differed only in letter case; on Windows and on a default Mac disk those are one file, so the second script was skipped. Paths are now compared without regard to case. A script whose URL ends in `.JS`, `.MJS` or `.CJS` no longer gets a second `.js` added, and a script captured many times is numbered `.hash.2`, `.hash.3` and so on, where each copy used to add to the last one's name until it was too long to write.
2026-11-18 10:26:27 +07:00
RRFZ d36d4d38bc Select Thumb mode for entryless ARM libraries and normalize Thumb target addresses (R3.11) 2026-11-17 22:16:02 -05:00
RRFZ b866bf95ec Fold single-codepoint lowercase before uppercase in module_path_key for Kelvin and Angstrom signs 2026-11-17 22:09:55 -05:00
RRFZ 0aa9c1559c Share span-merging secret redaction helpers across HAR, stand-in, and engine (R3.13)
- Update `analysis::web_har::replace_needles_with` to scan each UTF-8 character
  boundary for the longest matching needle and merge overlapping matched byte
  spans before replacing, closing the suffix leak on partially overlapping
  declared secrets in HAR inspection and stand-in builds while keeping distinct
  non-overlapping adjacent matches separate for stand-in deduplication budgets.
- Export `encode_query`, `contains_ascii_ci`, and `replace_needles_with` from
  `analysis::web_har` and call them directly from `engine::tools::web_common`,
  removing the duplicate implementations so all three redactors stay in sync.
2026-11-17 22:05:17 -05:00
RRFZ 6ac0a8563f Keep YAML anchor context for one-line flow checks and refuse next-line flow blocks 2026-11-17 22:03:46 -05:00
RRFZ 5296e50f2b Avoid case collisions, double extensions, and chained suffixes in web_scripts::plan_layout (R3.13) 2026-11-17 21:52:01 -05:00
RRFZ 926d51ab5c Claim R3.13: share-secret-redaction-helpers 2026-11-17 21:45:34 -05:00
RRFZ 9afff41393 Fold single-codepoint uppercase in module_path_key so final sigma collides with sigma 2026-11-17 21:42:28 -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