Commit Graph
541 Commits
Author SHA1 Message Date
RRFZ 4d132b7b0a Ignore incomplete start tags in HTML page inventories (R3.13) 2026-11-16 22:07:00 -05:00
BFlat 2b36d3a97e Merge pull request #1983 from Plastic-time/bugfix/r3.12-sourcemap-block-boundaries
An unfinished `/*# sourceMappingURL=` comment overrode an earlier complete one, and a line with two `*/` could return a URL containing text outside the comment. A closing delimiter is now required and the first one ends the comment; the legacy `@` marker is accepted in a complete block as in line comments.
2026-11-17 08:35:31 +07:00
BFlat aba7ad0a1e Merge pull request #1984 from Plastic-time/bugfix/r3.12-cpio-symlink-crc
GNU cpio's crc format stores a symbolic link's target as the member body and leaves its checksum field at zero. The reader summed the target and warned that the link was damaged. A zero checksum on a symlink is now taken as omitted; a non-zero one, and every regular file's, is still checked.
2026-11-17 08:24:48 +07:00
BFlat cd4ecad585 Merge pull request #1982 from Plastic-time/bugfix/r3.12-graphql-string-line-breaks
The operation reader accepted a raw CR inside a regular quoted GraphQL string, and a raw line break after a backslash, both invalid GraphQL. Both line terminators are now checked before an escape is processed; block strings keep their multi-line grammar.
2026-11-17 08:23:59 +07:00
BFlat 105c95dcd1 Merge pull request #1981 from Plastic-time/bugfix/r3.12-tcp-ecn-flags
A TCP SYN with flag byte 0xc2 was reported as SYN only. The ECE and CWR bits are now named with the other flags; existing flag strings keep their order.
2026-11-17 08:23:52 +07:00
BFlat 3f45a9b1c3 Merge pull request #1980 from Plastic-time/bugfix/r3.13-html-bogus-comments
The HTML scanner reported a script found inside `<!unknown ...>` or a malformed end tag, text that browsers treat as a comment up to the first `>`. That text is now skipped before the next tag is looked for.
2026-11-17 08:23:45 +07:00
BFlat 72dfda7653 Merge pull request #1979 from Plastic-time/bugfix/r3.12-wasm-component-layout
A valid WebAssembly component showed an empty layout, because the inspector stopped once it had identified the component header. The outer section framing is now read and listed, embedded modules and components are left to the existing validator, and a cut-short section keeps the layout read so far.
2026-11-17 08:23:38 +07:00
RRFZ 07dfa1a52b Keep source map annotations before trailing comments 2026-11-16 20:12:13 -05:00
RRFZ b226a475f7 Accept GNU cpio CRC symlinks without a checksum (R3.12) 2026-11-16 19:59:06 -05:00
RRFZ 8c88747c09 Require complete block source map annotations (R3.12) 2026-11-16 19:59:05 -05:00
RRFZ 5d83a84b26 Refuse raw line breaks in quoted GraphQL strings (R3.12) 2026-11-16 19:59:04 -05:00
RRFZ 43bd04745f Show classic ECN flags in TCP packet reports (R3.12) 2026-11-16 19:59:03 -05:00
RRFZ 6f0a6f4677 Keep bogus HTML comments out of script inventories (R3.13) 2026-11-16 19:59:02 -05:00
RRFZ 7d60ac9f89 Report top-level WebAssembly component sections (R3.12) 2026-11-16 19:59:01 -05:00
RRFZ 180660bb01 Use the full SQLite type to decide rowid aliases (R3.12) 2026-11-16 19:44:00 -05:00
BFlat 9437e05641 Merge pull request #1977 from Plastic-time/bugfix/r3.13-html-comment-endings
Browsers also close a comment at `--!>`, `<!-->` and `<!--->`. The scanner looked only for `-->`, so it missed scripts and preloads after such a comment. It now resumes at the first ending a browser recognises, and still hides what is inside ordinary and unfinished comments.
2026-11-17 07:38:10 +07:00
BFlat 5b3067ca3e Merge pull request #1976 from Plastic-time/bugfix/r3.12-sourcemap-line-endings
The source map annotation reader split lines on LF only, so a sourceMappingURL comment after a lone CR, U+2028 or U+2029 was missed. It now scans backward over every JavaScript line terminator, counting CRLF once and keeping the 64-line window.
2026-11-17 07:38:04 +07:00
BFlat e78462bc77 Merge pull request #1975 from Plastic-time/bugfix/r3.12-graphql-block-strings
An escaped triple quote inside a GraphQL block string was taken as the end of the string, so braces and comment marks after it were read as document syntax and the operation and later definitions were lost. The escaped delimiter is now consumed as part of the string.
2026-11-17 07:37:59 +07:00
BFlat 61d947b0da Merge pull request #1974 from Plastic-time/bugfix/r3.12-sqlite-quoted-types
SQLite accepts a quoted column type such as `id "INTEGER" PRIMARY KEY`, which makes the column an alias for the rowid. The reader kept the quotes, so it showed the stored NULL in place of the id. A quoted type is now read with the identifier reader, in all four quoting forms.
2026-11-17 07:37:53 +07:00
RRFZ 2d6fab1bf6 Require the full SQLite type for a rowid alias 2026-11-16 19:16:24 -05:00
RRFZ 30172fd238 Keep scripts after an HTML comment closed by the browser (R3.13) 2026-11-16 19:00:03 -05:00
RRFZ 7fe4bcfe12 Find source map annotations after JavaScript line endings (R3.12) 2026-11-16 19:00:02 -05:00
RRFZ 4d39d020f7 Keep escaped triple quotes inside GraphQL block strings (R3.12) 2026-11-16 19:00:01 -05:00
RRFZ 388b6fafe8 Read rowids when SQLite quotes the INTEGER type (R3.12) 2026-11-16 19:00:00 -05:00
RRFZ 8ea2ec66a1 Keep listing TAR members after old GNU sparse files (R3.12) 2026-11-16 18:59:58 -05:00
Nathaniel Caldwell ad0a68a596 Find a Windows game's program in its folder on Linux and macOS (R2.4) (#1809)
A Windows game's folder copied to Linux or macOS has no file with an executable bit, so no program was found and Deep mode skipped the decompiler. A Windows .exe now counts as the program to study on every system, while runtime study starts only a program this computer can run, in both its window and console runs.
2026-11-17 02:52:44 +07:00
AlexJoaquimPereira 80926a20e4 Keep a pin size estimate in its own project's dialog (R2.10)
A pin estimate that finished after the person cancelled or opened another project's dialog wrote its size into the open draft; an estimate error could also fall through to a toast. The estimate result and every project_pin_create error now name the project (estimate errors also say estimate), and the dialog fills only when the Pin dialog is open for the same normalized project. Estimate errors the open dialog rejects are swallowed; a failed pin creation still tells the person.

Regressions: a late estimate and a late estimate error for another project, an estimate after the dialog closed, and a failed creation that still toasts. Engine tests check the estimate result and both error details, including an open-project failure.
2026-11-16 23:56:16 +05:30
AlexJoaquimPereira 21affde516 Refuse a project file over 16 MB in the builder's read tool (R2.9)
build_file_read used std::fs::read, so a builder could point it at a multi-GB generated file under app/ or target/ and allocate the whole file before the 256 KiB page was produced; MAX_READ only capped the returned page.

It now reads through platform::fs::read_file_capped with a 16 MiB cap. A file over the cap returns OverLimit with a plain message and a remediation; files at or under the cap page as before. The helper also rejects non-regular files before reading.

Regression: a 16 MiB + 1 text file is refused and a file exactly at 16 MiB still returns its first page; the over-cap assertion failed before the fix, where the tool read it and returned a page. A follow-up roadmap line records build_file_edit, which still reads the whole file.
2026-11-16 23:02:53 +05:30
BFlat 59f2e3f49f Merge pull request #1964 from Fadlalla-ai/bugfix/r5.7-pin-own-program
A build folder shared by several projects holds every project's programs, and a same-named one there was taken for this project's: Play started it and a new pin copied it. A program outside the project now counts only when Cargo's dep-info file beside it lists sources inside the project, and the newest of the project's own builds is started. A pin made before programs were recorded looks only inside its own copy.
2026-11-17 00:13:01 +07:00
BFlat 44293b47f0 Merge pull request #1962 from AlexJoaquimPereira/bugfix/r2.9-project-evidence-switch
A session that opened one project and then another kept the first project's evidence and open questions in its ledger, so the second project's report and evidence tools mixed both. Opening a different project now clears the ledger, its order, the open questions and the unloaded count before loading the new project's store; reopening the same project still refreshes it in place. Records are saved to their project as they are made, so nothing is lost by clearing.
2026-11-17 00:04:33 +07:00
BFlat 88b2490892 Merge pull request #1961 from Fadlalla-ai/bugfix/r5.7-engine-path-folder
A path set in Settings → Engines counted as found whenever it existed, so a JDK's folder set for the Java runtime was listed as installed and then run as a program ("permission denied"). A folder is now looked in the way an install folder is, newest version first with digit runs compared as numbers; a folder without the program isn't found, and the message names the folder.
2026-11-16 23:55:43 +07:00
Fadlalla-ai 00cf099a38 Take a program from a shared Cargo target directory only when it was built from the project, and start an older pin from its own copy 2026-11-16 20:47:03 +04:00
AlexJoaquimPereira 12bfb1fafd Start a newly opened project from its own evidence (R2.9)
A session that opened project A and then B kept A's ledger and open questions: open_project loaded B's records into the same ledger. The desktop app has one engine for its lifetime, and each rebuild opens its project's investigation, so B's report and evidence tools mixed both projects.

Opening a different project now clears the session ledger, its order, open questions and unloaded count before loading the new project's store. Reopening the same project still refreshes it in place, and a failed unknowns read leaves the current project untouched. unloaded_evidence is recomputed on every open.

Regression: two projects with stored evidence and an open question; switching shows only the new project's records, reopening the same project keeps its ledger, and reopening the first restores its records. A follow-up roadmap line records the open targets and annotations that still survive a switch.
2026-11-16 22:04:36 +05:30
Fadlalla-ai a1c1c8abb9 Look for an engine's program in a folder set as its path, instead of running the folder 2026-11-16 20:18:11 +04:00
Fadlalla-ai 1520028963 Run JADX on the Java runtime engine, so it works with the Java Ghidra's setup brings 2026-11-16 19:54:38 +04:00
BFlat e70b577550 Merge pull request #1956 from Plastic-time/bugfix/r3.12-with-void-1116
Recovering `with ({undefined: 42}) { result = void 0; }` rewrote `void 0` to `undefined`, which the `with` object can supply, changing the result. Files containing a `with` statement keep their `void` expressions; other rewrites stay on.
2026-11-16 21:28:55 +07:00
BFlat 62f120294c Merge pull request #1955 from Plastic-time/bugfix/r3.12-trpc-calls-1116
The lexer fallback reported `const hook = trpc.users.list.useQuery` as a client call although it only reads a property. An opening call parenthesis (or an optional call) is now required.
2026-11-16 21:28:49 +07:00
BFlat 36c3325e4b Merge pull request #1954 from Plastic-time/bugfix/r3.12-string-escapes-1116
The lexer fallback read `require("./\141pp.js")` as a different module path and mis-decoded zero-padded braced Unicode escapes. Legacy octal escapes, every escaped line terminator and braced escapes of any length are now decoded, with checked arithmetic.
2026-11-16 21:28:42 +07:00
BFlat 99fd4a56c3 Merge pull request #1953 from Plastic-time/bugfix/r3.12-graphql-comments-1116
A comment between an operation keyword and its name hid the name, and a parenthesis inside a header comment could hide the whole operation. Comments and ignored separators are now skipped before header tokens are read.
2026-11-16 21:28:36 +07:00
BFlat 6be79a710f Merge pull request #1952 from Plastic-time/bugfix/r3.12-html-types-1116
A script whose type only resembled a JavaScript type (`application/javascript123`, or one with parameters such as `module; charset=utf-8`) was reported as executable. Types are now matched against the complete supported names, keeping `text/javascript1.0` to `1.5`, as browsers do.
2026-11-16 21:26:27 +07:00
BFlat fb16dab9be Merge pull request #1951 from Fadlalla-ai/bugfix/r5.7-managed-java-found
Ghidra's guided setup unpacks Java into the engine store's `jdk` folder, but the Java runtime engine was looked for under `java`, so after that setup the listing still said Java wasn't installed and tools that run a jar (Vineflower, Apktool's check) refused. A guided install now names its store folder in the engine table, and the lookup and installs use it; a test keeps two engines from sharing a store folder.
2026-11-16 21:13:05 +07:00
RRFZ d9ebf8adb8 Preserve void expressions around dynamic with scopes (R3.12) 2026-11-16 09:03:52 -05:00
RRFZ b849f1fbc7 Require a call before reporting a fallback tRPC operation (R3.12) 2026-11-16 09:03:07 -05:00
RRFZ d0c2b514d6 Decode JavaScript legacy escapes and line continuations (R3.12) 2026-11-16 09:02:23 -05:00
RRFZ 03f022e398 Skip comments in GraphQL operation headers (R3.12) 2026-11-16 09:01:38 -05:00
RRFZ a2cb128815 Reject unsupported HTML script type suffixes (R3.12) 2026-11-16 09:00:47 -05:00
Justin John 997b89ce4c Keep Settings → AI's tool list from showing an older choice (R5.4) (#1950)
Each change to an AI's tool list runs as its own job, and jobs can finish in any order, so two quick changes could leave Settings showing the first while the second was saved. The row now waits for its save, as the request-rate row does. Also escapes the `|` characters that split the STATUS table row.
2026-11-16 20:52:04 +07:00
Fadlalla-ai b4b51bc300 Find the Java that Ghidra's setup brings as the Java runtime, where Vineflower and the listing look 2026-11-16 17:48:58 +04:00
FredApps 239dc0536a Take target file signatures from the shared craft-sniff table (R3.12) (#1948)
* Take target file signatures from the shared craft-sniff table

* Pin craft-sniff to the craft-libs #1841 merge and record the cutover

The shared table is on main at 070005125f0af1a5ae4a59002270e5849505bfc0.

* Keep named-but-unsupported formats as Unknown

A CPIO file starting 070701 was identified by craft-sniff, then fell
through to the unsigned path and was called text. Identified kinds this
app does not inspect stay Unknown; the unsigned fallback is only for
files with no signature.
2026-11-16 14:40:58 +01:00
Fadlalla-ai 610fff4896 Follow a Ghidra setting that names a file to its Ghidra folder, and never run anything else as Ghidra 2026-11-16 16:56:00 +04:00