Commit Graph
922 Commits
Author SHA1 Message Date
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
RRFZ c6429efb81 Claim R3.13: html comment endings 2026-11-16 18:43:37 -05:00
RRFZ 2f37c8d290 Claim R3.12: sourcemap line endings 2026-11-16 18:43:35 -05:00
RRFZ cd50f30803 Claim R3.12: graphql block strings 2026-11-16 18:43:33 -05:00
RRFZ e7be207271 Claim R3.12: sqlite quoted types 2026-11-16 18:43:31 -05:00
RRFZ d3daccad84 Claim R3.12: gnu sparse extensions 2026-11-16 18:43:29 -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 3cd1c9017f Claim R2.10: keep a late pin estimate in its own project's dialog
A pin size estimate that finishes after the person cancels or opens another project's dialog is applied to the open dialog. Record the pending change before fixing it.
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
AlexJoaquimPereira f1fc90e72a Claim R2.9: bound a builder's project file read
build_file_read reads the whole file before paging, so a large generated file can freeze or kill the app. Record the pending change before fixing it; the parallel build_file_edit read stays as a follow-up.
2026-11-16 22:45:13 +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
Fadlalla-ai b4f97d834e Claim: a pin or Play takes a same-named program from a shared CARGO_TARGET_DIR 2026-11-16 20:37:27 +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
AlexJoaquimPereira 408ae82f63 Claim R2.9: start a newly opened project from its own evidence
A session that opens a second project currently keeps the first project's evidence and open questions in the ledger. Record the pending change before fixing it.
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 2772bebfe3 Claim looking for an engine's program in a folder set as its path 2026-11-16 19:59:32 +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
Fadlalla-ai 3d4f4421e5 Claim giving JADX the Java runtime engine 2026-11-16 19:39:28 +04:00
Fadlalla-ai 607c2cf1ea Merge remote-tracking branch 'origin/main' into bugfix/r5.7-settings-ghidra-lookup-once
# Conflicts:
#	docs/ROADMAP.md
2026-11-16 18:40:16 +04:00
BFlat edbeee75d9 Merge pull request #1957 from Fadlalla-ai/bugfix/r5.7-ghidra-wrapper-and-linked-script
Follow-up to #1949. A script that runs the headless launcher is kept as the launcher even when it sits in Ghidra's own folder, so what it sets up (its Java, say) isn't dropped. A path a start script names is also followed through its links, so a script that runs a linked ghidraRun leads to the Ghidra folder.
2026-11-16 21:32:18 +07:00
Fadlalla-ai 5494902239 Look Ghidra up once for Settings → Engines, not on every frame 2026-11-16 18:31:50 +04:00
Fadlalla-ai eb5a93951d Claim looking Ghidra up once for Settings → Engines, not on every frame 2026-11-16 18:31:50 +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 672279e8f3 Claim Preserve void zero expressions when a with statement can dynamically resolve undefined. 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 1d2a3e6ac2 Claim Require call syntax for tRPC client hooks in JavaScript lexer fallback facts. 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 3a0631ec1c Claim Decode legacy octal escapes, Unicode line continuations and zero-padded braced Unicode escapes in JavaScript strings. 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 9c7bbb081d Claim Skip GraphQL header comments before reading operation names and selection sets. 2026-11-16 09:01:37 -05:00
RRFZ a2cb128815 Reject unsupported HTML script type suffixes (R3.12) 2026-11-16 09:00:47 -05:00