Commit Graph
1008 Commits
Author SHA1 Message Date
Dylan M. Taylor 788529edb6 Share standard Base64 encoding for plist and Go format output 2026-11-16 22:33:19 -05:00
BFlat e4ba479004 Merge pull request #1991 from Plastic-time/bugfix/r3.13-html-incomplete-tags
A capture cut off inside a tag, such as one ending in `<script src=app.js`, reported a script no browser would run; cut-off link, title and meta tags could supply facts too. Page evidence now needs the tag to be closed.
2026-11-17 10:28:06 +07:00
Justin John 046ffa7ccd Read OpenCode's typed error from stdout, so its 503 is retried and its reason shown (#1990)
OpenCode prints its typed error on stdout and only "HTTP 503 Service Unavailable" on stderr, and a failed run's error kept only stderr. So the retry for a server still starting its plugins never saw the typed answer, and the person was shown the bare HTTP status (#1859). Model discovery now reads the typed line, retries on its tag, names its message in the error and keeps it in the details.
2026-11-17 10:19:20 +07:00
RRFZ 4d132b7b0a Ignore incomplete start tags in HTML page inventories (R3.13) 2026-11-16 22:07:00 -05:00
Dylan M. Taylor 5d9eafaee1 Use shared binary plist reader with existing limits and version policy (#1986) 2026-11-16 21:57:30 -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 98b05760ce Keep the affinity of bracketed SQLite types with inner quotes 2026-11-16 20:01:33 -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
BFlat b8d468bbb1 Merge pull request #1973 from Plastic-time/bugfix/r3.12-gnu-sparse-extensions
An old GNU sparse member can carry several 512-byte map blocks between its header and its stored data. The listing took the first map block for file data and stopped before the next member. The extension flags are now followed across whole blocks before the data offset is computed; a missing extension ends the listing with a warning.
2026-11-17 07:21:22 +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
NetterSilver 86c2dd0227 Reject '+' signs in hex of EVM metadata solc and ipfs values (#1971)
The EVM metadata reader parsed each two-character pair with from_str_radix, which accepts a leading '+', so a malformed solc value such as 0x+1+2+3 was reported as version 1.2.3 and '+f' decoded to a byte. Both characters must now be hex digits; malformed values stay as the raw string or are skipped.
2026-11-17 06:58:27 +07: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
Fadlalla-ai 607d66bba1 Keep the Ghidra lookup test from finding a Ghidra installed on the computer 2026-11-16 18:52:34 +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
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