Commit Graph
1058 Commits
Author SHA1 Message Date
Alex Joaquim Pereira 1b61eee258 Read PE version strings written as binary (R3.12) (#1274)
Some linkers write a version string with wType 0 (binary), and the PE reader dropped it, such as a DLL's FileDescription. A binary leaf at the string depth is now decoded as UTF-16LE text, while a binary node that holds a child node is still walked as a container.
2026-11-09 14:12:14 +08:00
Alex Joaquim Pereira 7411d4a537 Fill added SQLite defaults from hex and parenthesized literals (R3.12) (#1273)
Rows stored before ALTER TABLE ADD COLUMN now get the added column's default when it is a hex integer (`DEFAULT 0x10`, kept as SQLite's 64-bit two's-complement value) or a single literal in parentheses (`DEFAULT (5)`, `DEFAULT ('hi')`), instead of NULL with an "unsupported DEFAULT" note. Expressions and nested parentheses still show the note.
2026-11-09 13:46:40 +08:00
Alex Joaquim Pereira 7b8f8fa0e1 Keep a SQLite type's comma inside its parentheses (R3.12) (#1272)
A column's declared type keeps the comma inside its parentheses, so `DECIMAL(10, 2)` is listed as written instead of `DECIMAL(10 2)`, in the parsed columns and the schema overview; only the comma that separates columns is dropped.
2026-11-09 13:04:20 +08:00
Cr 00033627e6 Read a SQLite CREATE TABLE longer than 4 KiB whole (R3.12) (#1261)
Schema rows were decoded with the 4 KiB cap used for every text value, so a CREATE TABLE longer than that lost the columns after the cut, its rowid alias and its WITHOUT ROWID marker. The schema is now read whole for parsing (up to 1 MiB per statement and 32 MiB per walk, after which text is cut as before), while the statement shown is still cut at 4 KiB on a character boundary.
2026-11-09 11:45:13 +08:00
Alex Joaquim Pereira 7859973d7c Keep a continuing run's API transcript (R2.9) (#1260)
A build carrying on without a new request deleted the API builder's kept conversation before starting, so it could never resume and always studied again. The conversation is now kept whenever the run is continuing, and only a genuinely fresh build (no continuation and no finished study) starts a new one; a conversation from the other mode is still refused when it loads.
2026-11-09 11:26:09 +08:00
Cr 37d07a0a2c Read whole numbers in SQLite REAL columns as REAL (R3.12) (#1259)
SQLite stores a REAL with no fractional part as an integer and turns it back into a REAL when it reads a column with REAL affinity. Rows now read the same way, including WITHOUT ROWID keys and filled-in defaults of added columns, so `1.0` no longer shows as `1`. Affinity follows SQLite's order, so a `FLOATING POINT` column, which contains INT, stays an integer column.
2026-11-09 11:21:02 +08:00
Afloat 564d78e75d Require complete sBPF relocation records and honor their stride (R3.12) (#1128)
Solana program relocations are read at the table's declared entry size, which must be at least the record's own size, and each record must be complete; a short entry size or a truncated table is reported instead of fields being read from the next record.
2026-11-09 11:01:21 +08:00
Afloat a9487a078b Check certificate field tags and bit strings before verification (R3.12) (#1131)
Before a certificate's fields are used to verify a signature, the algorithm OID must be the first element of its sequence and valid, the key and signature bit strings must be non-empty with no unused bits, and the issuer and subject must be sequences. A certificate that fails these checks is not taken apart for verification instead of yielding an empty algorithm or misread bytes.
2026-11-09 10:57:07 +08:00
Afloat d12c458376 Only apply complete length-framed PAX metadata to tar members (R3.12) (#1136)
Adds tar tests for PAX records with a signed length, an empty key or an equals sign inside a path value: malformed framing stops the listing, and `path=a=b` names the member `a=b`.
2026-11-09 10:56:36 +08:00
Afloat b0c4d4bcbf Check cpio pathnames and the end marker before reporting a complete archive (R3.12) (#1134)
A cpio member's name must end in a NUL (extra NUL padding is still allowed), and an archive counts as complete only when its trailer is empty and fully present. An unterminated or invalid name, or a trailer with data or cut short, stops the listing with a warning instead of the archive being reported complete.
2026-11-09 10:55:29 +08:00
Afloat 43d8862cf2 Decode one complete XML plist document (R3.12) (#1253)
The XML plist reader now takes exactly one value, inside a closed `<plist>` when there is one, with only whitespace, comments and declarations around it: unclosed roots, extra values, stray text, non-empty `<true>`/`<false>` and a `<key>` outside a dictionary are errors instead of being read past. A DOCTYPE's internal subset is skipped as one declaration, without fetching or expanding entities. Invalid UTF-8 and a half UTF-16 code unit are reported instead of being replaced.
2026-11-09 10:55:22 +08:00
Afloat a205f1d157 Keep source lookups inside their declared index map section (R3.12) (#1130)
An index source map's sections now need a valid offset and either an inline map or a `url`, in ascending order; malformed section tables are an error instead of defaulting to offset 0. A section that points to an external map, which is never fetched, keeps its start, so lookups past it no longer borrow mappings from the inline section before it.
2026-11-09 10:55:15 +08:00
Afloat 58402ab226 Compare WebAssembly body counts with all declared functions (R3.12) (#1129)
The check that a module has one code body per declared function now counts every declaration in the function section, not only the ones the inventory kept, so a module with more functions than the listing limit no longer gets a false "function declarations but bodies" warning.
2026-11-09 10:50:35 +08:00
Afloat f4479f3f04 Require extracted bundle files to match the manifest size (R3.12) (#1127)
A packed bundle member whose stored or unpacked size differs from the size its manifest records is now an error instead of being returned as if it were complete.
2026-11-09 10:49:50 +08:00
Afloat 07a5f8686f Read WebAssembly debug URLs as length-prefixed UTF-8 names (R3.12) (#1126)
Source map and external debug URLs in WebAssembly custom sections are read as WebAssembly names: invalid UTF-8 is rejected instead of being replaced, and long inline source map URLs are kept whole.
2026-11-09 10:49:44 +08:00
Afloat ad4d57d4ae Count all local declaration groups in a WebAssembly function (R3.12) (#1125)
A function's local count now includes every local declaration group, not just the first 10,000; the inventory limit still applies to the number of functions listed.
2026-11-09 10:49:39 +08:00
Alex Joaquim Pereira 7a38723c0b Resume an API builder's transcript only in its mode (R2.9) (#1258)
An API builder's kept conversation now records whether it ran in Deep mode or Clean room (`transcript.json` version 2), and is only resumed in that same mode; a version-1 transcript counts as Deep. A run without a new request whose transcript came from the other mode studies again instead of carrying on, and a chosen extractor is no longer started in Clean room.
2026-11-09 10:47:38 +08:00
Afloat c8686f95fa Read Android XML events within their declared records (R3.12) (#1256)
The Android binary XML reader stays inside the document's declared size, reads a node's fields after the header length it declares, and requires each attribute record and typed value to fit within its own element. Nodes that are too short or attribute tables with an impossible layout mark the document truncated with a warning, instead of borrowing bytes from a sibling or from past the document's end.
2026-11-09 10:45:57 +08:00
Afloat ddedb6f314 Resolve references throughout a keyed archive (R3.12) (#1255)
Keyed archives now follow object references inside arrays, inline dictionaries and objects that are only an alias for another, both in the object list and when projecting an object. A `$top` that isn't a dictionary is no longer taken for an archive, and the text a projection copies from repeated references shares one 64 MiB budget.
2026-11-09 10:45:52 +08:00
RRFZ aa9db80218 Keep the columns of SQLite tables whose name holds a parenthesis (R3.12) (#1248) (#1248)
The SQLite reader found a table's column list at the first `(` in its CREATE TABLE, so a table named `"export (1)"` or `[Sheet1 (2)]` lost its columns, rowid alias and WITHOUT ROWID order. The list now opens at the first parenthesis outside quotes.
2026-11-09 10:44:45 +08:00
Afloat 5311b1d43a Resolve sBPF relocation symbols within the linked table (R3.12) (#1124)
A relocation's symbol name is read only from a linked symbol table and string table of the right types, and only when the symbol index falls inside that table, so relocations keep their record but no longer borrow names from neighbouring sections.
2026-11-09 10:39:14 +08:00
Afloat 0e69d2c590 Read sBPF section headers within their declared records (R3.12) (#1123)
Solana program section headers are read from records of the declared entry size, which must be at least 64 bytes, and a truncated section header table is reported instead of fields being read from the next record or past the end.
2026-11-09 10:39:08 +08:00
Afloat d065d0df84 Keep damaged CBOR metadata in the contract bytecode (R3.12) (#1122)
A contract's CBOR metadata trailer is split off only when it decodes completely. Text that isn't UTF-8, or arrays and maps longer than the reader keeps, now invalidate the trailer, so a plausible length suffix alone no longer removes instructions from the analyzed bytecode.
2026-11-09 10:39:03 +08:00
Afloat c962aecfd5 Keep Dart build IDs inside the ELF note extent (R3.12) (#1121)
A GNU build ID is read only when its description, after the padded owner name, fits inside the note region, so it can no longer borrow bytes from whatever follows the region.
2026-11-09 10:38:57 +08:00
Afloat f0b51d1bee Keep file padding outside the virtual image (R3.12) (#1120)
When a section or segment holds more file bytes than it maps into memory, the padding past its virtual size no longer gets a virtual address, and reads at an address stop at the mapped end instead of running into the padding.
2026-11-09 10:38:52 +08:00
Afloat eb57591a89 Read native pointers at the binary's declared width (R3.12) (#1119) (#1119)
Pointer reads follow the image's width: 16-bit binaries read two-byte pointers instead of four, and an unknown width reads nothing instead of guessing.
2026-11-09 10:37:46 +08:00
Afloat d85f75b2de Reject malformed tar sizes before placing the next member (R3.12) (#1135) (#1135)
A GNU base-256 number with its sign bit set is negative, which an unsigned tar header field such as a member's size can't be; it is now rejected instead of being read as a huge size.
2026-11-09 10:35:07 +08:00
RRFZ 6563f92c20 Keep PE version strings whose value is empty (R3.12) (#1252) (#1252)
Resource compilers write an empty version string with no value at all, and the PE reader dropped those. Strings such as `OleSelfRegister`, whose presence is what matters, are now kept with an empty value.
2026-11-09 10:32:39 +08:00
RRFZ 60c638526a Read quoted SQLite column names whole (R3.12) (#1251) (#1251)
A doubled quote inside a quoted column name now stands for one quote instead of ending the name, and single-quoted names, which SQLite accepts, lose their quotes. Keys that name such columns find them, so rowid aliases and WITHOUT ROWID order hold.
2026-11-09 10:32:33 +08:00
Afloat 9d3a288083 Report invalid safetensors metadata and payload layouts (R3.12) (#1257) (#1257)
The safetensors reader checks tensor sizes for the 4-, 6- and 8-bit float types too, refuses a header over 100 MB, warns about metadata values that aren't strings instead of showing them as JSON, shortens long architecture and name fields, and reports tensor data ranges that overlap, leave gaps or leave bytes unclaimed at the end.
2026-11-09 10:30:56 +08:00
Afloat 0c386e8ac8 Read binary plist objects only from supported markers (R3.12) (#1254) (#1254)
The binary plist reader accepts the `bplist0x` versions and reports others as unsupported. An unknown simple marker, a date marker of the wrong width or a dictionary key that isn't a string is now an error, instead of being shown as null or as an invented key.
2026-11-09 10:30:46 +08:00
RRFZ 22511a212a Show added columns' defaults in older WITHOUT ROWID rows (R3.12) (#1250) (#1250)
A WITHOUT ROWID row stored before ALTER TABLE ADD COLUMN has fewer fields than the table has columns. Those rows now show the added columns' DEFAULT values, as rowid tables already did, instead of NULL.
2026-11-09 10:26:20 +08:00
RRFZ 534b287732 Keep SQL comments out of SQLite column definitions (R3.12) (#1249) (#1249)
A comma or quote inside a comment in a CREATE TABLE no longer splits or swallows column definitions, a comment before or right after a column name isn't read as part of it, and a comment inside a definition stays out of its type, so INTEGER PRIMARY KEY still marks the rowid alias.
2026-11-09 10:24:10 +08:00
Nathaniel Caldwell 09a116586a Say where OpenCode 2.x comes from, and record the Linux live runs (R2.2) (#1241) (#1241)
docs/opencode.md now says that runs need OpenCode 2.x, that the install script and npm's `opencode-ai` still give 1.x, and that 2.x comes from npm's `@opencode/cli`, the desktop app's bundled CLI or the GitHub releases, with how to point the backend at it. It also warns not to start OpenCode during a build, since its shared service takes over the build's session. STATUS.md records the Linux live runs, and the roadmap gains the two problems they found.
2026-11-09 10:15:55 +08:00
Afloat b9a352542b Keep filesystem and archive recovery within recorded boundaries (R3.12) (#1246) (#1246)
JFFS2 extents and nodes, ROMFS payloads and header pointers, cramfs names, SquashFS metadata tables and file blocks, and tar PAX records now stay inside the sizes their images record. Out-of-bounds or truncated parts are reported as warnings and mark the recovery incomplete instead of being read past or silently dropped. PAX records need their terminator and a bounded name, and split octal fields in tar headers are rejected.
2026-11-09 10:03:53 +08:00
JG Tromp b78586dc75 Start a .cmd that only runs one .exe by its full path as that .exe (#1238)
On Windows, a .cmd wrapper whose only command is one quoted, absolute .exe path followed by %* is started as that .exe, so its arguments skip cmd.exe (no % expansion, no 8191-character cap, line breaks allowed). Any other wrapper still runs as it is. The test that starts the .exe is Windows-only and isn't run by the Linux gate.

Fixes #1237
2026-11-09 08:25:45 +08:00
JG Tromp 154a091184 Wrap a found AI's description beside its Add button (#1235)
In Settings → AI, a card for an AI found on this computer lays its buttons out first and wraps the name and reason in the width they leave, so a long reason no longer runs under the Add button.
2026-11-09 08:06:14 +08:00
Nathaniel Caldwell 22126eae77 Discover OpenCode's models with a private server (#1232)
OpenCode model discovery, which also runs before every OpenCode turn, now uses --standalone unless the person chose a --server. Plain opencode api started OpenCode's shared service, which resumes every unfinished session on the computer, in any project, and carries on with its commands.

Part of #1115.
2026-11-09 06:52:37 +08:00
Cr 02e51b0243 Keep SQLite values on their columns when a table has VIRTUAL generated columns (R3.12) (#1231)
A VIRTUAL generated column stores no field in a row, so stored values no longer shift one column left: such a column is shown as not read, with a note, in rowid and WITHOUT ROWID tables alike, and a rowid alias after it is filled again.
2026-11-09 06:16:35 +08:00
Nathaniel Caldwell e85e28be5b Remove opencode.md's second doubled passage (R5.2) (#1228)
The older, cut-off copy of the standalone-server sentence in opencode.md's configuration section goes; the newer copy, which also says where the file goes over SSH, stays.
2026-11-09 05:45:29 +08:00
Nathaniel Caldwell 309adc7fc2 Remove STATUS.md's doubled rows and opencode.md's doubled paragraph (#1226)
Five STATUS rows that merges had kept twice, with different updates in each copy, are now one row each, the most complete copy (OpenCode models and thinking now says once that SSH runs get the tools), and opencode.md loses its older doubled paragraph. A pitfall says how to merge a conflicting table row.
2026-11-09 04:41:22 +08:00
Alex Joaquim Pereira 0326b4de80 Refuse saved Claude session reuse of a Deep session in Clean room (R2.9) (#1224)
A --resume of the project's Deep session, or a --continue, saved in the Claude Code backend's extra arguments no longer bypasses the mode check: a Clean room build or question is refused before the agent starts, with how to fix it. Other agents, other sessions and Deep runs are unaffected.
2026-11-09 03:35:59 +08:00
RRFZ 0a8cc08891 Accept binary plist arrays that repeat one stored value (R3.12) (#1219)
A binary plist whose array or set names one stored object many times, as Python's plistlib writes equal values, is no longer refused; only its references must fit in the file. The node cap is checked before memory is reserved, and copied data and text share a byte budget, so repeats can't expand without bound.
2026-11-09 03:22:41 +08:00
Roman Serikoff f34724796b Don't continue a Deep chat's session in a Clean room shared chat (R2.9) (#1223)
When the shared investigation chat switches from Deep to Clean room, it starts a new agent session instead of resuming the Deep one, which may carry what Deep mode read; a context with no recorded mode counts as Deep.
2026-11-09 03:08:30 +08:00
Roman Serikoff e440907a93 Play Python packages and built Java jars (R2.7) (#1209)
Play, screenshots and self-tests start a Python project's one package with a __main__.py as python3 -m <name>, and a Maven or Gradle project's one runnable jar (its manifest names a Main-Class, read without loading the jar) with java -jar. Maven now builds with package, so the jar exists after our own build.
2026-11-09 03:03:45 +08:00
Alex Joaquim Pereira 5f839d8778 Cut truncated SQLite TEXT at a character boundary (R3.12) (#1220)
A TEXT value cut at the 4 KiB cap ends at a character boundary in UTF-8 and UTF-16, so its shown prefix gains no replacement character it did not have; the value is still marked as cut.
2026-11-09 02:35:24 +08:00
Alex Joaquim Pereira 0e7e43f418 Record a builder session's mode so Clean room never resumes a Deep one (R2.9) (#1202)
craft.json keeps the mode a builder's saved session ran in (version 4, with a migration that counts an older saved session as Deep). A build or question resumes a session only in the mode it was saved in, so Clean room never continues one that may have read inside the original, and a Deep session is kept for a later Deep run.
2026-11-09 02:11:26 +08:00
Nathaniel Caldwell 8826ce266f Read tool calls a model writes in Qwen's markup, and answer calls to tools it wasn't offered (R5.4) (#1173)
A reply in Qwen's <tool_call> markup that a server handed back as text is read as the calls it makes, with arguments typed from the tool's schema; a call to a tool the model wasn't offered gets a plain answer naming its tools, instead of ending the turn.
2026-11-09 01:57:47 +08:00
Nathaniel Caldwell f379a4ec3f Stop sending builders that can't see pictures to screenshots (R5.4) (#1159)
A builder in the API loop, which can't open pictures, is no longer sent to look at screenshots: every brief and check that pointed it at a picture tells it what to use instead (capture.json's layouts, the UI tree, or asking the person). Agent apps keep the picture wording.
2026-11-09 01:57:41 +08:00
BFlatandAfloat cb0bb9d8fa Bound format readers and resolve launch paths (#1217)
Source-map data URLs ignore their fragment, ZIP directories are told by their attributes, rejected ASAR names count toward the limit, a HAR with a UTF-8 BOM parses, .NET bundle members stay before the manifest, Play starts a Python project's one installed console script, and Godot and Electron get an absolute project path.

Supersedes #1140, #1141, #1142, #1143, #1144, #1145 and #1146.

Co-authored-by: Afloat <ShuffleMonkey@163.com>
2026-11-09 01:55:01 +08:00