Commit Graph
1148 Commits
Author SHA1 Message Date
Afloat 34d9450b75 Preserve DEX boundaries when member or handler lists are capped (R3.12) (#1388)
A class-data group cut at the member limit left its unread records where the next group would be read, so they were taken as that group's members, and a typed-handler list that stopped early could turn its remaining bytes into a catch-all address. The class data now ends as incomplete before an unread group, and a catch-all is read only after every typed handler.
2026-11-09 22:51:28 +07:00
Justin John c7606c4551 Stop a private browser and delete its profile when the app ends without closing it (R2.9, #810) (#1376)
A private browser or driven Electron app was stopped only when its process handle was dropped, which a crash, a kill, a force quit or an MCP server stopped by its client never does, so the browser was left running and its profile stayed in the temp folder. On Unix a small watcher now stops the browser's process group and deletes its `craft-*` profile once the app is gone, and ends by itself as soon as the browser does. Windows children are held by a Job Object; whether one outlives an abrupt exit is left as a roadmap line.

Refs #810
2026-11-09 22:51:21 +07:00
Afloat efddbdeb68 Bound Mach-O indirect import slots across all sections (R3.12) (#1386)
The indirect symbol limit applied to each section on its own, so many sections could still read an unbounded number of slots. It now applies across all sections, with a warning when slots are left out.
2026-11-09 22:41:42 +07:00
Afloat fbdc3049db Read Mach-O thread entry points from the matching complete CPU state (R3.12) (#1385)
An `LC_UNIXTHREAD` entry point was read from the first state record whatever its CPU or length. It's now read from the record whose flavour matches the file's CPU (x86_64, arm64 or i386) and that holds a complete state, so a short or foreign record no longer gives a made-up entry point.
2026-11-09 22:41:35 +07:00
Afloat 25f4db213e Apply PE export limits to aliases and empty function slots (R3.12) (#1384)
The export limit counted listed exports but not the function slots examined or the extra names of one function, so a crafted table could still make the reader do unbounded work. Both now count against the limit, and the table says when it was cut.
2026-11-09 22:41:29 +07:00
Afloat 131cac4f56 Respect the UTF-8 output budget for IL2CPP literals (R3.12) (#1380)
A string literal cut at the display limit could grow past it once invalid bytes became replacement characters, or end in the middle of a character. The text shown now stays within the limit, on a character boundary, and an incomplete final character isn't shown as a replacement.
2026-11-09 22:40:03 +07:00
Afloat a5ea19cf10 Recover dynamic symbols when retained ELF sections omit the symbol table (R3.12) (#1367)
Dynamic symbols were recovered from the dynamic segment only when a file had no section headers at all. They're now recovered whenever the sections give none, and symbols, exports and imports already listed aren't added twice.
2026-11-09 22:35:00 +07:00
Afloat 7779fc2449 Advance ELF core mapping paths by their original bytes (R3.12) (#1366)
A core dump's file mapping paths are read one after another, and the reader moved on by the length of the decoded path, which differs from the stored bytes when a path isn't valid UTF-8, so the paths after it went wrong. It now moves on by the bytes it read.
2026-11-09 22:34:53 +07:00
Afloat 78af11ce4d Keep same-named imports attached to their own library slots (R3.12) (#1365)
Two imports with the same name from different libraries shared the first one's slot address. Slots are now matched by name and library, and an import that already knows its slot keeps it.
2026-11-09 22:34:46 +07:00
Afloat 2474de39fe Decode Unity R16 and RG16 textures (R3.9) (#1378)
Unity textures in the R16 (format 9) and RG16 (format 62) layouts are now decoded: R16 as greyscale, and RG16's two channels as red and green.
2026-11-09 22:34:33 +07:00
Afloat ee73141313 Bound retained metadata when listing Node SEA programs (R3.12) (#1377)
The code path, asset names and exec arguments kept from a Node single-executable program now share an 8 MiB limit on decoded text, and the listing says when metadata was left out instead of keeping all of it.
2026-11-09 22:34:26 +07:00
Afloat 5b1bf92ba3 Reject PE virtual addresses that wrap past the address space (R3.12) (#1370)
A PE entry point or import slot was computed with wrapping arithmetic, so an address past the end of a 32-bit image's address space wrapped round to a small one. Such addresses are now refused: the entry point is left unknown with a warning, and an import slot without a valid address isn't listed as one.
2026-11-09 22:31:20 +07:00
Afloat 0cb327f9c9 Keep ELF symbol versions inside their declared sections (R3.12) (#1368)
Symbol version definitions, requirements and the version index were read from their section's offset onwards with nothing to stop them at the section's end, so a damaged table could take versions from whatever followed. They're now read only within their sections' bytes.
2026-11-09 22:31:13 +07:00
Afloat 87d9ec0e5f Preserve GNU tar member identities at the long-name limit (#1362)
A GNU long name or link longer than the name limit was cut to the limit, so two members could end up with the same name. Such a name now stops the listing with a warning, a long name whose data ends early is reported, and names up to the limit, terminated or not, keep their full text.
2026-11-09 22:26:54 +07:00
Cr a561c0d371 Decode Swift enum case symbols (R3.12) (#1359)
A symbol ending `WC` is the function that builds an enum case, and the demangler read the `W` but not the `C`, so every one was reported invalid. It now reads `enum case for` and the case's function, payload and generic parameters included, as `swift-demangle` prints them, and refuses a `WC` after another global.
2026-11-09 21:53:21 +07:00
Cr 13916403c4 Keep parentheses around Swift optional function types (R3.12) (#1357)
An optional function type or protocol composition was written without parentheses, so `((Data) async throws -> Data?)?` read as a function returning an optional. The wrapped type is now put in parentheses before `?` or `!`, as `swift-demangle` writes it.
2026-11-09 21:31:09 +07:00
Cr 8fb279e499 Name Swift allocating initialisers init outside classes (R3.12) (#1356)
An allocating initialiser read `__allocating_init` everywhere. As `swift-demangle` prints them, only a class's own initialisers keep that name; in a struct, an enum, a protocol or any extension, even of a class, it reads `init`.
2026-11-09 21:31:02 +07:00
Cr ee1dbf4d3a Name the right generic parameter in Swift associated types (R3.12) (#1355)
A `Qy` associated type names its generic parameter with the same numbering as `q`, where `Qy_` is the second parameter, and the demangler counted from the first, so `B.Iterator` read as `A.Iterator`. It now names the parameter `swift-demangle` names.
2026-11-09 21:30:56 +07:00
Cr ef9f33f990 Read the kind letter of Swift addressors (R3.12) (#1354)
An addressor's mangling is `a` (mutable) or `l` followed by a letter for its kind, and the demangler read the kind letter as the next operator, so every addressor was reported invalid. The kind letter is now read (unsafe, owning, native owning and native pinning, mutable and not), and an unknown kind is an error instead of being taken for an unsafe addressor.
2026-11-09 21:04:20 +07:00
Cr d9c069a8bd Decode Swift protocols named in a protocol list (R3.12) (#1353)
A Swift existential type (`any Error`, `A & B`) is mangled as a protocol list where each protocol is a context and a name with no kind letter, and the demangler expected a type there, so every such symbol was reported invalid. Each protocol in a list is now read as a context and a name, taking no substitution slot of its own.
2026-11-09 21:04:14 +07:00
Justin John 1c0e49f284 Let a Deep build through Claude Code start subagents again (R2.2, #1105) (#1351)
Claude Code builders got a fixed tool list without `Agent`, and since that list limits the whole session, every subagent call failed with "No such tool available: Agent". A Deep build now includes `Agent`: a subagent gets only the builder's tools and the session's permissions, and starting one goes to the approval tool like other actions. Clean room still leaves it out, since all of its reads must reach the approval tool.

Fixes #1105
2026-11-09 21:00:00 +07:00
Cr 3f4c54bdd4 Read the Swift standard type SQ as Equatable (R3.12) (#1350)
The two-letter standard type `SQ` in a Swift mangling is the protocol `Swift.Equatable`, and the demangler read it as the enum `ImplicitlyUnwrappedOptional`, so generic constraints named the wrong type and conformances to Equatable were reported invalid. It now reads `SQ` as `Swift.Equatable` in all three manglings.
2026-11-09 20:38:15 +07:00
Afloat 1b5f516b07 Verify Cargo package versions before reporting Rust dependencies (R3.12) (#1329)
A path like `vendor/notes-1.2.draft/` was taken for a crate and its version. A Cargo package folder is now split into name and version only where the rest is a complete semantic version and the name is a valid crate name, so hyphens in names and prerelease or build versions (`helper-2-1.2.3-rc.1+build.7`) read correctly and other folders aren't reported.
2026-11-09 19:46:34 +07:00
Afloat 0c4cdd63cc Read decimal digit separators when filling added SQLite columns (R3.12) (#1318)
A row stored before ALTER TABLE ADD COLUMN reads the default as SQLite's default expression gives it, not as a later insert would store it. In a TEXT column a separated literal keeps its spelling without the underscores or a leading plus (`1_000.` reads '1000.', `12_34.5_0` reads '1234.50'), and an integer that fits in 64 bits is written plainly (`0_07` reads '7'), as SQLite 3.50 reads them.
2026-11-09 19:44:26 +07:00
Afloat b6a50815a7 Keep Mach-O zero-fill sections out of file-backed section data (R3.12) (#1348)
A zero-fill Mach-O section (`S_ZEROFILL`, `S_GB_ZEROFILL`, `S_THREAD_LOCAL_ZEROFILL`) takes memory but has no bytes in the file, so looking one up by name could return unrelated bytes from the start of the file. Each section now keeps its type, and a zero-fill one has no file range.
2026-11-09 19:39:28 +07:00
Afloat 41c3bdd9f8 Keep Dart snapshot metadata inside its declared extent (R3.12) (#1343)
A Dart snapshot's hash and feature string are now read only within the length the snapshot declares, so they can't come from bytes after it.
2026-11-09 19:18:12 +07:00
Afloat fb4c437fe6 Read JVM method parameters containing parentheses in class names (R3.12) (#1342)
A method descriptor's parameter list now ends at the parenthesis that follows a whole parameter, so a class name containing a parenthesis no longer cuts the parameters short.
2026-11-09 19:18:06 +07:00
Afloat de18c1066e Attribute instantiated Go function names to their owning package (R3.12) (#1341)
A generic Go function's name with type arguments in brackets, which can hold slashes, is now split at the package before the brackets, so it's attributed to the package that declares it.
2026-11-09 19:18:01 +07:00
Afloat 25a8f179f8 Read concatenated Zstandard frames without dropping member data (R3.12) (#1340)
A Zstandard member made of several frames, possibly with skippable frames between them, was read only up to its first frame. Every frame is now decoded in turn, within the same output limit.
2026-11-09 19:17:55 +07:00
Afloat bd279b18f1 Decode VLAN tags in Linux cooked packet captures (R3.12) (#1339)
VLAN tags were only read in Ethernet captures. They're now read after the Linux cooked header too (SLL and SLL2), so tagged frames reach the IP decoder.
2026-11-09 19:17:49 +07:00
Afloat 96413a8e65 Expand overlapping LZ4 matches in blocks in Unity bundles (R3.12) (#1338)
An LZ4 match that overlaps what it writes is now copied in growing chunks of the repeating pattern rather than a byte at a time, with the same output.
2026-11-09 19:17:43 +07:00
Afloat 9877acc34b Read checked Info-ZIP Unicode path metadata for legacy member names (R3.12) (#1337)
A ZIP member with a legacy-encoded name and an Info-ZIP Unicode path field whose checksum matches the name now shows the Unicode name. A field that doesn't match, or a name already flagged as UTF-8, keeps the name as before.
2026-11-09 19:17:37 +07:00
Afloat dd95209f21 Distinguish Android resource locales with explicit scripts and variants (R3.12) (#1336)
Android resource configurations that differ only in script, variant or numbering system, such as zh-Hant and zh-Hans, now get distinct BCP 47 qualifiers (`b+zh+Hant+TW`) instead of the same `zh-rTW`.
2026-11-09 19:17:31 +07:00
Afloat 66d80d19b8 Keep X.509 name separators distinct from attribute values (R3.12) (#1335)
A certificate name is now written with its values escaped as names are written in text, and attributes of one RDN joined with `+`, so a comma or plus sign inside a value can't read as a separator.
2026-11-09 19:17:25 +07:00
Afloat d6c6d12480 Stop PE header lookups at the declared header size (R3.12) (#1334)
An address in a PE file's headers is now resolved only within the headers' declared size, instead of up to the first section, which could reach into padding.
2026-11-09 19:17:20 +07:00
Alex Joaquim Pereira 9db798f026 Write non-separated SQLite REAL defaults in SQLite's text form (R3.12) (#1315)
A TEXT column's default that is a real number kept the schema's own text, so `DEFAULT 1e3` showed '1e3' and `DEFAULT 5.` showed '5.'. SQLite reads such a literal as a REAL and writes it as text in its own form, so these now read '1000.0' and '5.0', large numbers switch to scientific notation as SQLite's do, and infinity reads 'Inf'. Integers that fit in 64 bits are still written plainly.
2026-11-09 20:16:31 +08:00
Afloat 9aefab4e7a Identify hard-linked regular files in newc and CRC archives (R3.12) (#1333)
In newc and CRC cpio archives, hard-linked files share an inode and only one copy carries the data. The empty copies are now listed as hard links to the one with the data, instead of as empty files.
2026-11-09 20:16:25 +08:00
Afloat 722a363c2a Read JSONC settings after carriage-return line comments (R3.12) (#1330)
A line comment now ends at a carriage return as well as a newline, so a settings file saved with old Mac line endings is read and edited instead of being taken as one long comment.
2026-11-09 20:16:23 +08:00
Afloat 7fd244005d Preserve source map URL roots when joining relative sources (R3.12) (#1332)
A source map's `sourceRoot` such as `webpack:///` or `file:///` kept its slashes trimmed when a relative source was joined to it, which broke the URL. A root that already ends in a slash is now joined as it is.
2026-11-09 20:16:20 +08:00
Afloat f0d449005e Keep the earliest binary strings across narrow and UTF-16LE encodings (R3.12) (#1328)
When the string limit is reached, the strings kept are the earliest in the file across both narrow and UTF-16LE text, instead of filling the limit with narrow strings and dropping earlier wide ones.
2026-11-09 20:16:17 +08:00
Afloat 9a1dfd0d65 Count received HAR response bytes separately from decoded content (R3.13) (#1327)
A HAR summary added the larger of each response's received and decoded sizes into one total. It now reports the received bytes and the decoded content bytes separately, with how many responses didn't record each.
2026-11-09 20:16:11 +08:00
Afloat 78b5f86f1b Reject missing file and chunk references in IoStore directory listings (R3.12) (#1326)
An IoStore directory entry that names a missing string or chunk is now an error, instead of listing a file called `?` or a size of 0.
2026-11-09 20:16:05 +08:00
Afloat 8a6e74e498 Check IL2CPP method ranges against their declaring types (R3.12) (#1325)
Each method in a type's method range must name that type as its owner, so a damaged or overlapping range is reported instead of attaching another type's methods to it.
2026-11-09 20:15:59 +08:00
Afloat 22d949dbfd Keep Apple asset catalog directories within their declared byte ranges (R3.12) (#1324)
The block index and variables table of an asset catalog are read only within the sizes the file declares for them, so a damaged count or name length is reported instead of being read past its table.
2026-11-09 20:15:54 +08:00
Afloat 3f7b9a3615 Require a rejecting branch before labelling EVM dispatch nonpayable (R3.12) (#1323)
A contract function was labelled nonpayable whenever CALLVALUE appeared before its body. It now needs the check to branch to a revert when a value was sent, and a body that halts with an error before any check is reported as unknown.
2026-11-09 20:15:48 +08:00
Afloat fedafbe2c1 Extract PYZ resources without adding Python bytecode headers (R3.12) (#1322)
A PyInstaller PYZ archive holds data files and namespace packages besides modules. Data files are now extracted as they are, without a bytecode header in front, namespace packages are listed instead of being shown as empty modules, and an unknown member type isn't decoded.
2026-11-09 20:15:43 +08:00
Afloat b8eb242761 Start games requested in Phaser or Bevy without an editor install (R2.7) (#1331)
A game requested "in Phaser" or "using Bevy" now builds with that framework, as a browser project or a Cargo project in app/, instead of being sent to an editor the person didn't ask for.
2026-11-09 20:14:11 +08:00
Afloat 234b5dc968 Extract Bun modules' stored source maps and bytecode (R3.11) (#1321)
A Bun program's modules can carry a stored source map and bytecode, which were only counted in a note. They're now listed and extracted as their own members, in a folder whose name doesn't clash with the program's own files.
2026-11-09 20:12:32 +08:00
Afloat a689a4e5d1 Show the size of copied pinned builds in Settings (R2.10) (#1320)
The pin list now reports how many bytes its copied pins take, and Settings shows that total next to the pinned builds.
2026-11-09 20:12:27 +08:00
Afloat 43f4a069ba Give resumed API builders the check their loop can run (R5.4) (#1319)
A follow-up or a resumed run on an API builder no longer tells it to check its work with `rebuild_check`, which its loop doesn't run; it's told that Craft Anything checks the build after its turn. Coding agents are still told to run the check themselves.
2026-11-09 20:12:20 +08:00