Commit Graph
215 Commits
Author SHA1 Message Date
BFlat 854f50e129 Merge pull request #2014 from Plastic-time/bugfix/r3.12-sqlite-parenthesized-primary-key
SQLite accepts a primary key written as PRIMARY KEY((a), b) in a WITHOUT ROWID table. The reader stopped at the first closing parenthesis and could not work out the stored row layout. It now reads to the matching end of the key list, finds the column inside redundant parentheses and uses its outermost collation.
2026-11-17 12:02:46 +07:00
BFlat ecaa1027e6 Merge pull request #2005 from Plastic-time/bugfix/r3.12-dos-extended-pe-signature
The DOS header report took any "PE" prefix at the extended-header offset for a Windows extension, including a cut-off signature or "PENA" in unrelated bytes. The full four-byte signature is now required. A complete signature that overlaps the DOS header, as hand-packed small executables have, is still reported.
2026-11-17 12:02:08 +07:00
BFlat cf749a926d Merge pull request #2009 from Plastic-time/bugfix/r3.12-java-truncated-attributes
A Java class file that ended partway through a class-level attribute was read with no warning, so source or signature details after the cut were silently missing. The reader now keeps the attributes it could read and warns when the table ends early.
2026-11-17 11:48:08 +07:00
BFlat e32b09b910 Merge pull request #2007 from Plastic-time/bugfix/r3.12-tar-pax-size-precedence
A TAR member with a valid PAX size still stopped the archive walk when its superseded size field held invalid octal, so later members vanished from the listing. The PAX size is now read first for ordinary members, and the old field is read and checked only when no override applies.
2026-11-17 11:46:35 +07:00
RRFZ 6163368bea Keep PE signatures that overlap the DOS header 2026-11-16 23:46:20 -05:00
BFlat 11fad9bb2e Merge pull request #2004 from Plastic-time/bugfix/r3.12-ipv6-no-next-header
An IPv6 packet whose Next Header is 59 (no next header) got an invented "other" transport record that included any bytes after the header. Transport decoding now stops at 59, also when an extension header supplies it; other protocol values are decoded as before.
2026-11-17 11:45:41 +07:00
BFlat 75b078888b Merge pull request #2006 from Plastic-time/bugfix/r3.12-indexed-map-source-inventory
An indexed source map that also carried a top-level `sources` list reported those names as part of the bundle although no section maps to them, and they could push a real source out of a full inventory. An indexed map now keeps only its file name and takes its sources from its sections.
2026-11-17 11:42:21 +07:00
RRFZ d2953f60dd Read parenthesized SQLite primary-key columns (R3.12) 2026-11-16 23:34:23 -05:00
BFlat b87fce648a Merge pull request #2001 from Plastic-time/bugfix/r3.12-macho-complete-command-paths
The Mach-O readers took the whole remainder of a load command as a library name or runpath when its path had no terminating NUL, so a command that never finished its string still supplied dependency evidence. The NUL must now be inside the command, in both summary views.
2026-11-17 11:28:14 +07:00
RRFZ d29465c20b Use PAX sizes before reading TAR member size fields (R3.12) 2026-11-16 23:21:43 -05:00
RRFZ 420552ff74 Report truncated Java class attribute tables (R3.12) 2026-11-16 23:19:02 -05:00
RRFZ 0b1a643944 List sources from the section maps of an indexed source map (R3.12) 2026-11-16 23:18:59 -05:00
RRFZ 7343ab0f40 Require the complete PE signature in DOS header reports (R3.12) 2026-11-16 23:18:58 -05:00
RRFZ 3836b5bd52 Stop IPv6 packet decoding at No Next Header (R3.12) 2026-11-16 23:18:57 -05:00
BFlat 961078950d Merge pull request #2000 from Plastic-time/bugfix/r3.12-zip-legacy-zstd
A ZIP member using the original Zstandard method number, 20, was listed with an unknown method and could not be extracted or found in firmware scans. It now goes through the same name, bounded decoder and archive discovery as the current number, 93.
2026-11-17 11:10:12 +07:00
BFlat 67c70dfb14 Merge pull request #1998 from Plastic-time/bugfix/r3.12-sqlite-key-collations
In a WITHOUT ROWID table whose primary key names one column twice with different collations, SQLite stores a key slot for each. The reader collapsed them into one and so read the next column from the wrong slot. A repeated key term is now dropped only when its column and effective collation are already present.
2026-11-17 11:06:27 +07:00
RRFZ d433b6cdd0 Preserve Mach-O import ordinals when a library path is invalid 2026-11-16 23:05:20 -05:00
RRFZ 0586649778 Require terminated paths in Mach-O load commands (R3.12) 2026-11-16 22:49:31 -05:00
RRFZ 29badae7c9 Read the legacy Zstandard method in ZIP archives (R3.12) 2026-11-16 22:49:29 -05:00
RRFZ da974744c0 Keep distinct primary-key collations in SQLite row layouts (R3.12) 2026-11-16 22:49:27 -05:00
BFlat 5acce07c67 Merge pull request #1994 from Plastic-time/bugfix/r3.12-android-provider-sdk-default
An Android manifest with a minimum SDK of 23 and no target SDK reported a provider as exported by default. Android takes the minimum SDK as the target when none is given, and from 17 a provider is private by default. Export inference now uses the minimum SDK when the target is omitted; explicit targets and explicit exported values are unchanged.
2026-11-17 10:44:47 +07:00
RRFZ 5a574f623b Read typed SDK integers when inferring Android exports 2026-11-16 22:22:10 -05:00
RRFZ a45c0a5677 Include legacy SDK-M permissions in Android manifest inventories (R3.12) 2026-11-16 22:07:08 -05:00
RRFZ 3cd2a2dd1c Use the minimum SDK for omitted Android target defaults (R3.12) 2026-11-16 22:07:06 -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 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 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 43bd04745f Show classic ECN flags in TCP packet reports (R3.12) 2026-11-16 19:59:03 -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 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 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 7fe4bcfe12 Find source map annotations after JavaScript line endings (R3.12) 2026-11-16 19:00:02 -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 1097195797 Detect ZIP members through the archive directory (R3.12) (#1822)
zip_has_entry scanned the whole file for central-directory signatures, so a ZIP holding backup.zip whose inner archive had an AndroidManifest.xml, or a comment shaped like a directory entry, was taken for an APK. It now searches the archive's own validated central directory with the existing parser, keeping only the matching entry and decompressing nothing.
2026-11-15 17:46:29 +07:00
RRFZ 3a4edea0a7 Preserve CR-only JSONC configuration formatting (R3.12) (#1823)
The JSONC parser accepted carriage-return line endings, but its editor found lines by LF only, so adding a setting to a CR-only configuration brought in LF and lost the members' indentation, and removing a member left its line behind. CR now ends a line when the editor locates lines and when it removes a whole member's line, and a CR-only document keeps CR; LF and CRLF documents are unchanged.
2026-11-15 17:35:44 +07:00
RRFZ 4fd0742dbe Bound managed PE detection to the optional header (R3.12) (#1821)
pe_is_managed read the CLR directory past the optional header a PE file declares, so a native image with a short optional header and nonzero bytes where the directory usually sits could be taken for .NET. The optional header is now read through a slice bounded by SizeOfOptionalHeader, with the offset addition checked; PE32 and PE32+ keep their directory-count and nonzero RVA and size checks.
2026-11-15 17:35:38 +07:00
Alex Joaquim Pereira f2b86778dd Bound the firmware PE carve by the optional header (R3.12) (#1898)
The firmware carver read a PE's header size and certificate directory at fixed offsets without checking the optional header's declared size, so a short header could borrow bytes after it, inflate the region and carve into the next embedded object. Those fields are now read only inside the declared optional header, and a header too short for its fixed fields gives no PE region.
2026-11-15 16:59:43 +07:00
scks1 1d8a3b4f60 Check the section-by-section signature hash against the test kit's own (R3.11) (#1051)
The hash of a signed Windows program is now checked against a second implementation: the test kit signs its fixtures with its own copy of the steps, covering gaps between sections, section order, data after the last section, sections that share bytes and 97 sections. A file that declares more sections than were read is refused instead of being hashed with some left out.
2026-11-15 16:52:18 +07:00
Alex Joaquim Pereira 2e7dfa5e34 Bound the .NET PE reader by the optional header (R3.12) (#1897)
The .NET reader read the data-directory count and the CLI directory at fixed offsets without checking the optional header's declared size, so a file whose header ended earlier could be read as a .NET assembly from section-table bytes, or refused with a misleading section error. It now reads those fields only inside the declared optional header and refuses a short one as truncated.
2026-11-15 16:22:57 +07:00
Nicolas Bohn 3c1926cd23 Save Unity sounds: a WAV for 16-bit PCM, else the FMOD bank (R3.9) (#1879)
game_unity_asset_export now takes AudioClips (Unity 5 and later). The sound is read from the .resource file beside the serialized file or inside the bundle, 256 MiB at most. A single 16-bit PCM sample in mono or stereo is saved as a WAV; anything else (Vorbis, ADPCM, a bank that isn't read) is saved as the FMOD bank it's stored in, with a limitation saying so. The output's extension is set to .wav or .fsb to match.
2026-11-15 05:54:21 +07:00
Nicolas Bohn 77f2b4434b Use the ASAR reader's check to pick a target's kind (R3.12) (#1826) (#1826)
Target detection recognised an ASAR only when its header JSON began exactly with {"files":, so a valid archive written with a space or another key first wasn't an ASAR target although the reader opened it. Detection now uses the reader's own check (pickle size 4 and a JSON object at byte 16), so the two agree.
2026-11-13 23:43:43 +07:00
Alex Joaquim Pereira d56fa23860 Mark sources of unread external source-map sections uncertain (R3.12) (#1767) (#1767)
An index-map section that points at an external map, which is never fetched, adds no sources, so an application graph treated the map's list as complete. Such sections are now counted (through nested index maps), the graph names them in a limitation, and comparing a reference source tree with the bundle reports an otherwise unmatched source as uncertain with partial coverage instead of absent.
2026-11-12 18:12:13 +07:00