Commit Graph
1584 Commits
Author SHA1 Message Date
Afloat 35a5a1446d Check the ZIP64 end record's extent against its locator (R3.12) (#1137)
The ZIP64 end record's declared size wasn't checked. A record smaller than its fixed fields, an extent that overflows, or fixed fields that run into the locator now make the archive corrupt; a declared extent that doesn't end at the locator, or a locator that doesn't point to a record (as in archives with a stub in front), keeps reading the directory with a warning, as before.
2026-11-11 18:02:25 +07:00
NetterSilver 9804798f1c Keep signed exponents inside JavaScript number tokens (#1658)
The tokenizer split 1e+5 and 2.5E-3 into three tokens, because a number ended at the sign. A + or - right after e or E, followed by a digit, now stays in the number, except in hex, binary and octal literals, where 0x1e+5 is still 0x1e, +, 5.
2026-11-11 17:53:43 +07:00
Afloat 3876d7fbb2 Recognise UTF-16 keyed-archive NIB files (R3.12) (#1657)
The XML plist reader already decodes UTF-16 after either byte-order mark, but the check that decides a file is a plist only looked for ASCII <plist, so UTF-16 NIB archives were turned away first. The check now also finds the UTF-16LE and UTF-16BE marker after its byte-order mark, on code-unit boundaries, within the same 1 KiB probe.
2026-11-11 17:50:03 +07:00
Afloat 65fad01a0d Require complete Android resource entry payloads (R3.12) (#1654)
A type chunk whose entry data started inside its offset table or past the chunk was still read, and a bag entry with a short header, or more values than fit in the chunk, read past its data. The type is now skipped with a warning in the first case; in the second the entry is kept without its parent and values, the table is marked truncated, and a warning says why. A bag with more values than the reader keeps is marked truncated too.
2026-11-11 17:49:57 +07:00
Afloat 88993fabc1 Keep fractional seconds in property-list dates (R3.12) (#1656)
Binary plist dates and keyed-archive NSDate values were shown floored to whole seconds, so events within one second looked the same. They now keep their fraction, rounded to microseconds (finer would only show the float's noise for present-day dates), with a rounded-up second carried into the date; whole seconds still show without a fraction.
2026-11-11 17:34:46 +07:00
Afloat 49af55e4e4 Don't recover JFFS2 files from data nodes that didn't decode (R3.12) (#1636)
A data node that failed to inflate, used an unsupported compression or decoded to a length other than its declared size was skipped, leaving zeros or older bytes in the file while it looked recovered, and an overlong raw node could overwrite the next extent. Such nodes now mark their extent damaged; a newer valid node can still replace it, and a file is left unrecovered only if a damaged extent survives into its final contents.
2026-11-11 17:34:05 +07:00
Afloat fdf958e443 Note non-minimal DER lengths in signatures and certificates (R3.12) (#1646)
The DER reader accepted redundant length encodings (a long form under 128, or a leading zero length byte) without saying so. Each element now records whether its length is minimal; certificate, CMS, Authenticode and certificate-chain views keep everything they read and add one note that an element is not strict DER, and signatures over those bytes are checked as before.
2026-11-11 17:26:06 +07:00
Afloat c68090d182 Keep certificate name values distinct when they aren't plain text (R3.12) (#1652)
Lossy decoding turned different malformed name values into the same replacement characters, and UniversalString values weren't decoded. Name values are now decoded by their string type (UTF-8; Printable, IA5, Visible and Numeric as ASCII; T61 as Latin-1; BMP and UniversalString as UTF-16 and UTF-32), and a value that is malformed or of another type is shown as its hex DER encoding.
2026-11-11 17:23:23 +07:00
Afloat e9e78485cb Report trailing bytes after .NET signatures instead of ignoring them (R3.12) (#1632)
Signature readers returned the decoded signature and silently accepted bytes after it. Complete method, field, local, TypeSpec and instantiation signatures now note when their blob carries extra bytes: the decoded types are kept, as the runtime uses them, and the inventory, member and native-boundary views say once that some signatures have trailing data that wasn't interpreted.
2026-11-11 17:23:14 +07:00
Matavanary Studio a719d8dc80 Add a Thai README (#1643)
README.th.md is a Thai translation of README.md, and every README's language switcher links to it.
2026-11-11 17:13:44 +07:00
Afloat e755c874e6 Don't open a different Godot project when its path isn't valid UTF-8 (R2.7) (#1649)
Godot reads --path as UTF-8, and the path was passed through a lossy conversion, so a project folder whose name isn't valid UTF-8 could open a different project with a similar name. Such a project now isn't launched instead.
2026-11-11 17:10:48 +07:00
Afloat 97983e5f3d Keep Android device configuration qualifiers distinct (R3.12) (#1653)
Resource configurations that differed only in grammatical gender, round screens, wide colour gamut, HDR, or keyboard and navigation visibility got the same qualifier string, and MNC 00 was shown as 65535. Those qualifiers are now named as Android names them.
2026-11-11 17:10:43 +07:00
Afloat 341dd7def5 Require matching operands before reporting EVM dispatch facts (R3.12) (#1651)
The contract dispatcher patterns accepted instructions a few positions apart, so unrelated code could be read as selector extraction, a Vyper selector comparison or a short-calldata check. Each pattern now needs its exact instruction sequence and operands, and a dispatch to something that isn't a JUMPDEST reports its mutability as unknown.
2026-11-11 17:10:38 +07:00
Afloat 025ba55e84 Recognise macOS and VFAT ZIP entry attributes (R3.12) (#1650)
ZIP entries made on macOS (host 19) now keep their Unix mode, so their directories and symlinks are recognised, and VFAT entries (host 14) are recognised as directories by their DOS attribute, as MS-DOS and NTFS entries already were.
2026-11-11 17:10:31 +07:00
Afloat c5e524dd08 Trace JVM bootstrap dependencies at their bytecode use sites (R3.12) (#1648)
Searches for where a class is used missed lambdas, method handles, method types, class literals and dynamic constants. ldc and invokedynamic now link through the class's BootstrapMethods table to the method handle and static arguments they use, reported at the instruction that loads or calls them, within a shared work limit.
2026-11-11 17:09:41 +07:00
Afloat 901f99f846 Decode DNS service binding, naming and authentication records (R3.12) (#1647)
SVCB and HTTPS answers (priority, target, ALPN, port and address hints; unknown keys kept as hex), NAPTR, DNAME, SSHFP, TLSA and URI records now show their values instead of a byte count. A record that doesn't decode marks its message incomplete, keeping the answers before it, as other records do.
2026-11-11 17:07:33 +07:00
Afloat f8ef412721 Require bound-import names to end inside the PE directory (R3.12) (#1645)
A bound import's module or forwarder name was read up to 256 bytes from its offset, even past the end of the directory. A name now has to end inside the directory, or it's reported as outside it, as the other bound-import checks are.
2026-11-11 17:07:27 +07:00
Justin John 726fba1368 Send a note left waiting when the app closed, instead of deleting it (R2.9) (#1644)
A note sent during a build waits in the inbox for the builder's next step; if the app closed before the builder took it, the next run deleted it as it started (#1620). The note's file now also keeps the person's own words, how the feed shows them and the pictures, and a run started without a message sends what an earlier run left waiting, oldest first, before the folder is cleared, as the app already does with notes a finished run didn't get to.
2026-11-11 17:01:52 +07:00
NetterSilver a0f249f6ab Reject a '+' sign in Go quoted-string hex escapes (#1642)
unquote_prefix read the digits of \x, \u and \U escapes with from_str_radix, which accepts a leading '+', so a malformed escape like \x+a was read as a newline. The digits must now all be hex, so such a string doesn't parse; a test covers all three escapes.
2026-11-11 16:53:51 +07:00
Afloat cbd7ebfb40 Decode concatenated XZ streams and standard stream padding (R3.12) (#1383)
The XZ decoder expected the file to end right after one stream's footer, so valid .xz files with several streams or the standard four-byte padding were refused. It now finds each stream's bounds from the end, through its checksummed footer and index, and decodes them in order under one output budget; index integers, declared sizes and padding alignment are checked, and every read of the input is bounds-checked. SquashFS blocks keep the single-stream decoder, as before.
2026-11-11 16:43:16 +07:00
Afloat 31f19ceef3 Decode Unreal packed 10:10:10:2 and 11:11:10 float textures (R3.9) (#1640)
PF_A2B10G10R10 and PF_FloatR11G11B10 textures couldn't be exported. The shared pixel decoder now reads both: 10-bit red, green and blue with two-bit alpha, and unsigned 11/11/10-bit floats shown as sRGB like the other float formats.
2026-11-11 16:31:40 +07:00
Afloat 4f74a23bcd Decode Unity EAC channel textures (R3.9) (#1638)
Unity's EAC_R, EAC_R_SIGNED, EAC_RG and EAC_RG_SIGNED textures were recognised but couldn't be exported. The shared pixel decoder now reads EAC's 11-bit channel blocks (modifier tables, column-major selectors and the zero-multiplier rule), showing one channel as grey and two as red and green, with signed values mapped so zero is mid-grey.
2026-11-11 16:31:33 +07:00
Afloat d1eb619005 Keep CLI array ranks and declared bounds in .NET type names (R3.12) (#1631)
A rank-one general ARRAY signature was shown like a vector (int[]), and declared sizes and signed lower bounds were dropped, so different managed types looked the same. Type names now keep the general-array form (int[*] at rank one), each dimension, and explicit bounds (int[0...2], int[-1...]), in method, field, local, generic and nested-array names.
2026-11-11 16:28:14 +07:00
Afloat 839b05a764 Reject duplicate GGUF metadata keys and tensor names (R3.12) (#1635)
A repeated metadata key could overwrite the reported model identity, and a repeated tensor name could inflate the parameter total; display truncation and retention caps could hide the repeat. The reader now tracks complete keys and tensor names and reports a file that repeats one as malformed, as the format's own loader does.
2026-11-11 16:27:25 +07:00
Afloat b63e1f9aae Recover cramfs files with direct block pointers (R3.12) (#1637)
The cramfs reader gave up on any file with a direct block pointer. It now follows them: the shifted start address, uncompressed blocks of the expected size, and compressed blocks prefixed by their two-byte length, in both byte orders, with ordinary blocks after a direct one starting where it ended. Bounds and output limits are as before.
2026-11-11 16:27:22 +07:00
viwe-monai fff725e893 Use the four step names consistently in the README's Status section (#1628)
The Status section called the workflow Study → Build → Check → Refine while the rest of the README and the app name the last step Ready; it now says Ready too.
2026-11-11 16:26:19 +07:00
Afloat fa7d9b68e7 Read short ext symlinks stored in data blocks (R3.12) (#1633)
The ext reader took every symlink shorter than 60 bytes as stored inline, so a short target kept in a data block was read from the block-pointer bytes and came out wrong. It now tells inline targets from block-backed ones by the inode's allocated blocks, allowing for extended attributes, ext4 allocation units and large block counts; inline-data symlinks are reported as not read, and a target whose data can't be read stays unknown, with its declared length kept.
2026-11-11 16:25:30 +07:00
Afloat c08696f338 Reject CIL branch destinations outside the method body (R3.12) (#1630)
Signed branch and switch displacements were cast back to unsigned offsets even when the destination lay before the method or past its last byte, so invalid targets reached control-flow analysis. Short branches, long branches and every switch destination are now checked against the body; an invalid one stops decoding before that instruction with a reported issue, keeping the instructions decoded before it.
2026-11-11 16:21:56 +07:00
NetterSilver 48a5d998bc Say "yesterday" for recent files 24 to 48 hours old in question prompts (#1627)
The question prompt described a file changed a day ago as "1 days ago". It now says "yesterday" for ages from 24 up to 48 hours, as the app's own age labels do, and a test checks both edges.
2026-11-11 16:21:02 +07:00
Afloat 0fd1e7b6f1 Keep PE import descriptors inside their mapped file bytes (R3.12) (#1369)
Normal, delay-load and bound import readers now stop at the end of the file bytes their directory maps to, require complete descriptor and forwarder records, and mark the table truncated with a warning when they don't get them. A normal import table that runs past its declared Size, or has Size 0, is still read to its terminator, as Windows does, with a warning. Names and forwarders outside the bound import directory are reported instead of read from beyond it. The resource reader shares the same mapping-length helper, unchanged.
2026-11-11 16:18:52 +07:00
NetterSilver 15e8282c74 Reject sign characters in hex addresses (#1625)
parse_address handed the digits after 0x (or before a trailing h) to from_str_radix, which accepts a leading sign, so 0x+10 and +10h read as 0x10. Hex addresses must now be non-empty hex digits, and anything else gets the usual "not an address" error. The address test covers 0x+10, +10h and 0x-10.
2026-11-11 15:39:06 +07:00
NetterSilver 1163dab217 Reject a '+' sign in cpio hex and octal header fields (#1624)
The cpio reader parsed header numbers with from_str_radix, which accepts a leading '+', so a malformed field such as "+000000A" read as a valid number. Hex and octal fields now must be all digits of their base, or they read as unreadable fields like any other malformed one. A test covers both kinds.
2026-11-11 15:29:16 +07:00
NetterSilver c59a49a94c Reject NaN and infinity for number options in the CLI (#1623)
A number option parsed with f64, which accepts NaN, inf and infinity; JSON can't hold those, so the value silently became null. The CLI now refuses non-finite numbers with its usual "expects a number" error, and a test covers NaN, inf, -inf and infinity.
2026-11-11 14:36:56 +07:00
Afloat 4d87c5edc7 Preserve repeated observations when comparing evidence bundles (R3.11) (#1613)
`core_evidence_exports_compare` indexes each operation/subject by a single record. Normal exports can contain several observations of that subject, including different text pages or successive versions of the same address annotation. Later index insertions silently overwrite earlier observations, so additions and removals disappear, changing record order changes the comparison, and one intact page can hide a tampered page from the changed count.
2026-11-11 13:59:58 +07:00
Afloat affed64ed1 Keep AArch64 address evidence tied to proven register values (R3.11) (#1601)
The AArch64 address tracker kept an old value after an addition with an unknown register, read unknown memory indices as zero, could keep a stale base after a load with writeback or a stale link register after a call, and did W-register additions in 64 bits, so stale values could name a later indirect call as an import its instructions didn't establish. Address facts are now kept only when the operands prove them: unknown addends and indices clear the result, W additions wrap at 32 bits, every register an instruction writes is forgotten before new facts are recorded, and calls clear the link register too.
2026-11-11 13:57:00 +07:00
Afloat 76c7ca6082 Keep worker modules in their own execution role (R3.12) (#1618)
The application graph recognizes a worker entry point but then follows its spawn edge while assigning the parent's role. Worker modules, their ordinary dependencies and their endpoint evidence consequently appear as `main`, `page` or `package`. The later worker-role pass cannot correct a role that was already assigned. Use the existing worker/service-worker/utility-process edge classification to stop parent-role traversal at execution-context boundaries. Worker roots still receive their own role and propagate it through ordinary imports. Spawn edges remain in the graph, and a module also directly imported by the parent retains the existing role precedence.
2026-11-11 13:53:07 +07:00
Afloat 439dae070e Keep module roles when dependency imports repeat (R3.12) (#1617)
A package with 52 reachable modules loses the final module's role when each hop repeats the same `require()` 2,000 times. The graph resolves those imports, but role propagation charges its 100,000-step limit for duplicate queue entries, eventually leaving reachable modules as `unknown`. Mark modules in the existing role map before enqueueing them. Repeated imports, cycles and shared dependencies then use one queue entry per newly discovered module. The limit remains 100,000 newly discovered modules per assignment, and the existing main/preload/renderer/page/worker precedence stays intact. Inline scripts continue to inherit their page's role.
2026-11-11 13:42:34 +07:00
Afloat 0757863ece End JavaScript comments at every line terminator (R3.12) (#1616)
The token scanner ended `//` comments only at LF. A bare CR, U+2028 or U+2029 therefore hid following executable code inside the comment. That dropped imports, IPC and fetch facts in lexer fallback and prevented the parser admission check from seeing excessive nesting after the comment. Recognize every JavaScript line terminator when scanning line comments, skip Unicode terminators before charging the token budget, and stop identifiers at those boundaries. Strings, templates and block comments keep their existing handling.
2026-11-11 13:39:24 +07:00
Afloat 99ee49dd99 Match numeric bundle identifiers by their JavaScript value (R3.12) (#1615)
A module keyed by `0x10` and a loader call written as `16` produced different identities. Numeric separators and exponent notation caused the same problem, including dangling `requires` targets in the application graph. Different spellings of one numeric dependency could also occupy separate list entries. Use the existing syntax library's JavaScript number conversion for numeric module keys, loader arguments, browserify mappings and chunk IDs. Explicitly enable its already-present `to_js_string` feature. String identifiers retain their literal spelling, including strings such as `"0x10"` that identify a different property from numeric `0x10`.
2026-11-11 13:38:17 +07:00
Afloat 9480cc0108 Report partial text coverage when the final line is cut (R3.11) (#1610)
A text-read page that reached the last line of a file but cut a line at the 256 KiB limit reported cut_lines correctly, yet its coverage said complete because it was worked out from the line count alone. Coverage is now partial whenever a line on the page was cut.
2026-11-11 13:36:32 +07:00
Afloat b11ba97427 Keep evidence-based call paths within one input binary (R3.11) (#1612)
Function studies identify their source bytes, but `app_call_path_find` currently joins their addresses without checking that source identity. Two different binaries can therefore contribute different edges at the same addresses and produce a call path that exists in neither binary. The regression uses two real ELF targets: one has main → helper, the other has helper → dispatch, and neither contains the complete main → dispatch path. Both inline records and saved evidence references reproduce the false path.
2026-11-11 13:17:54 +07:00
Afloat 15bb58b686 Preserve the possible x16 input of authenticated returns (R3.11) (#1621)
With FEAT_PAuth_LR and PSTATE.PACM set, RETAA and RETAB use x16 as an extra modifier. The decoder knows neither the CPU's features nor PSTATE, so authenticated returns now also record a possible read of x16, beside their link register and stack pointer, and value flow keeps that input.
2026-11-11 13:14:40 +07:00
Afloat 28d1063a52 Bound input reads and refuse non-regular files before reading (R3.11) (#1611)
The input loaders trust an earlier file-size report before reading to EOF. A regular virtual file can report zero bytes and still return data beyond the configured limit, and files can grow between the size check and read. Some loaders accept devices or pipes, allowing a text or evidence-bundle request to wait indefinitely for a writer. Prefix reads also use metadata size to decide whether to assign a whole-file hash, so a truncated prefix of a zero-size-reporting file is misidentified as the whole input.
2026-11-11 13:14:35 +07:00
Afloat 6a4dee893e Keep native function evidence from blocks before its entry (R3.11) (#1600)
A native function can branch to a body block placed before its entry address. The control-flow graph already included that block, but reference and string scans only looked from the entry onward, and parameter inference took the lowest-address block as the entry, so a register set by the real entry could become a false parameter while the real input disappeared. Reference scans now cover the address range of all of the function's body blocks, and parameters are read from the block at the function's actual entry.
2026-11-11 13:11:26 +07:00
Afloat 25f6c0720d Warn about undefined Python bytecode header flags (R3.12) (#1595)
A modern .pyc header's flag word defines only its two low bits, and other bits were read without comment. Undefined bits are now reported as a header warning, while the invalidation mode, source fields and code are read from the defined bits as before, so a file from a future Python release that adds a flag stays readable. Legacy headers, which have a timestamp in that position, are unaffected.
2026-11-11 13:08:26 +07:00
Afloat 25b7aca841 Preserve AArch64 inputs when arithmetic results are discarded (R3.11) (#1593)
The AArch64 decoder drops XZR and WZR from the register list, so for an ordinary arithmetic instruction whose result is discarded, the first remaining source register was marked as written. That false write broke reaching definitions and could erase a proven import-slot base before a later load and call. The discarded-destination rule, which covered only flag-setting instructions, now applies to ordinary arithmetic too, so those registers stay inputs.
2026-11-11 13:05:48 +07:00
NetterSilver 160c830eac Return +0.0 instead of -0.0 from entropy() for constant data (#1619)
entropy() returned -0.0 for constant or zero-filled input, because summing the single symbol's term gives a negative zero, which shows as "-0.00". Adding 0.0 before the conversion turns it into +0.0 and leaves every other value unchanged. A test covers constant and zero-filled data.
2026-11-11 12:54:54 +07:00
Afloat 6c32b3b5a2 Preserve AArch64 control-transfer register effects (R3.11) (#1599)
Ordinary AArch64 returns treated the selected target register as a destination and unconditionally read `x30`, even for `ret x19`. Authenticated branches and calls had correct control-flow categories but fell through the generic operand-write rule, which overwrote their target's reaching definition. Authenticated returns also omitted their stack-pointer input.
2026-11-11 12:47:22 +07:00
Afloat d552493da2 Resolve webpack loaders by their parameter bindings (R3.12) (#1614)
A webpack wrapper can have a loader parameter named `r` while a nested function uses its own unrelated parameter with the same spelling. The dependency visitor treated both calls as module loads, adding false `requires` edges to the application graph. Resolve loader calls against the wrapper parameter's semantic binding. This retains closures that capture the real loader, distinguishes function/arrow parameters, block and catch bindings, and avoids treating the placeholder for a destructured parameter as an actual loader name. First-seen ordering and dependency deduplication stay intact.
2026-11-11 12:42:40 +07:00
Afloat 2897b15894 Keep capped byte-search results in global file-offset order (R3.11) (#1609)
core byte search ran its hex, UTF-8 and UTF-16LE queries in turn against one shared 100,000-match allowance, so a stream of later hex matches could use it up before an earlier text match was considered, and sorting afterwards couldn't bring that match back. Each query now keeps up to the cap, the results are merged in file-offset order and cut to the cap, and the result says when the cap was reached.
2026-11-11 12:39:51 +07:00