Commit Graph
8806 Commits
Author SHA1 Message Date
morluto fb9f19d83a refactor(zip): share local header facts across readers (#12629) 2026-11-20 01:34:34 +00:00
morluto e782a6a8cd refactor(nativeaot): share packed method table index reads (#12640) 2026-11-20 01:30:17 +00:00
morluto ed336bd31c fix(ghidra): retain DOS images with order-dependent fixups (#12649) 2026-11-20 01:29:50 +00:00
RRFZandmorluto 6c6b92edac fix(desktop): keep indented blank lines within APT source stanzas (#12620)
* fix(desktop): keep indented blank lines within APT source stanzas

* fix(desktop): trim trailing deb822 continuations in linear time

* fix(desktop): retain carriage-return-led APT continuations

* fix(desktop): keep CR-led APT fields distinct from continuations

---------

Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-20 01:24:52 +00:00
3cfe8480c5 fix(elf): decode a 32-bit prpsinfo whose ABI gives pr_uid 32 bits (#10189)
* fix(elf): decode a 32-bit prpsinfo whose ABI gives pr_uid 32 bits

`decodeCorePrpsinfo` assumed every ELFCLASS32 core carries the i386/ARM `struct elf_prpsinfo`:
16-bit `pr_uid`/`pr_gid` and a 124-byte descriptor.

`pr_uid` is `__kernel_uid_t`, and its width is an ABI property, not an ELF-class one. Only
`arch/x86/include/uapi/asm/posix_types_32.h` and its ARM/m68k/sparc counterparts narrow it to
`unsigned short`; everything else takes `asm-generic/posix_types.h`'s `unsigned int`, so MIPS o32,
PowerPC-32, s390 and `compat_elf_prpsinfo` (`include/asm-generic/compat.h`:
`typedef u32 __compat_uid_t`) write a 128-byte struct with every member after `pr_flag` four bytes
later.

Reading a 128-byte descriptor with the 124-byte offsets published wrong values rather than null.
Measured through `parseElfNotes`, with `uid 70000, gid 80000, pid 4242, fname mips-proc`:

    before: {"pid":80000,"ppid":4242,"pgrp":1,"sid":4242,"uid":4464,"gid":1,
             "filename":"\u{10}","psargs":""}
    after:  {"pid":4242,"ppid":1,"pgrp":4242,"sid":4242,"uid":70000,"gid":80000,
             "filename":"mips-proc","psargs":"./mips-proc --serve"}

`pid` came out of the middle of `gid` and the two text fields came from the wrong offsets
entirely.

The kernel writes `sizeof(*psinfo)` as the descriptor — `fs/binfmt_elf.c`:
`fill_note(&info->psinfo, PRPSINFO, sizeof(*psinfo), psinfo)` — so the declared length already
carries the distinction and no machine table is needed. The 32-bit id width is now
`descriptor.length >= 128 ? 4 : 2`, and `pr_pid`/`pr_fname`/`pr_psargs` are derived from it. The
124-byte and 136-byte decodes are unchanged; the second new case pins that.

`src/native/elf` and `src/domain/native` — 535 passing. Forcing the 16-bit layout fails the new case.

* test(elf): produce the 32-bit prpsinfo layout from the shared note builder

Review finding: the regression hand-encoded a second NT_PRPSINFO layout while `corePrpsinfoNote` is
the repository's producer for this format, so nothing else could represent the MIPS/PowerPC/s390
ABI and the two encodings could drift.

`corePrpsinfoNote` takes `idWidth: 2 | 4` now. It allocates 124 or 128 bytes from it, writes
`pr_uid`/`pr_gid` at that width, and derives `pr_pid` through `pr_psargs` from `8 + idWidth * 2`
instead of the fixed 12/28/44 offsets. The option is ignored for a 64-bit image, whose layout is
fixed at 136.

Both new cases build their descriptor through the producer, so the test no longer carries offsets
the fixture does not know about.

* test(elf): drop the duplicate 124-byte prpsinfo case

The previous commit's rewrite left the original hand-built 124-byte block in place, so the same
regression ran twice — once through `corePrpsinfoNote`, once with the offsets written out again.
Keeping both is exactly the drift the shared producer was supposed to end.

* fix(elf): preserve SuperH PRPSINFO decoding

---------

Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
Co-authored-by: wunianze666-netizen <wunianze666@gmail.com>
2026-11-20 01:23:27 +00:00
morluto 78fdc7ecf7 fix(gradle): disclose unfamiliar metadata revisions (#12648) 2026-11-20 01:22:36 +00:00
morluto 17ada289ac fix(javascript): retain original nested iterator acquisitions (#12645) 2026-11-20 01:20:59 +00:00
RRFZ 31702dabd8 refactor(electron): carry fuse inspection limits from the reader (#12647) 2026-11-20 01:20:55 +00:00
morluto d68f6207cd fix(nuget): recognize license types case-insensitively (#12643) 2026-11-20 01:20:01 +00:00
morluto 939dd19efe fix(gpu): report the enforced parser limit (#12646) 2026-11-20 01:19:45 +00:00
morluto a37fee0543 refactor(elf): project unwind limits from parser failures (#12644) 2026-11-20 01:19:20 +00:00
RRFZ 04b47507dc refactor(pe): read CodeView directory declarations once (#12632) 2026-11-20 01:15:48 +00:00
morluto 21dfefcfb2 refactor(il2cpp): share stored native image scalar reads (#12638)
refactor(il2cpp): share native registration scalar reads
2026-11-20 01:13:26 +00:00
morluto 3ce6cd8a84 fix(fit): retain member read failures during close (#12623) 2026-11-20 01:12:31 +00:00
RRFZ bd70cf94ff perf(desktop): compare complete RGBA pixels in the screenshot readiness check (#12633) 2026-11-20 01:12:28 +00:00
morluto 6c7d69245e fix(crash): bound recorded core note source reads (#12634)
refactor(native): share recorded crash source reads
2026-11-20 01:11:57 +00:00
morluto d0ca65e524 refactor(elf): share fixed note descriptor reads (#12630) 2026-11-20 01:10:34 +00:00
morluto df375cc70d fix(pyinstaller): validate TOC record framing before capacity (#12622)
* fix(pyinstaller): validate TOC record framing before capacity

* test(pyinstaller): assert TOC framing facts without prose
2026-11-20 01:08:45 +00:00
morluto ba4205fe5e fix(swift): validate vtable bounds before slot capacity (#12627) 2026-11-20 01:08:31 +00:00
morluto b2c19952e9 test(firmware): scope directory sync cancellation to POSIX (#12636) 2026-11-20 01:07:15 +00:00
ShuaixinHuangandShuaixinHuang e40b735954 fix(ci): skip unused translation indexes during runner provisioning (#12609)
Co-authored-by: ShuaixinHuang <ShuaixinHuang@users.noreply.github.com>
2026-11-20 01:04:23 +00:00
RRFZ 22ead365e7 refactor(providers): share firmware and Flutter cleanup aggregation (#12618)
* refactor(providers): share firmware and Flutter cleanup aggregation

* test(firmware): check both cleanup failure records through retry
2026-11-20 01:03:56 +00:00
aad3019e38 fix(uefi): identify AMD guided zlib sections correctly (#12608)
* fix(uefi): identify AMD guided zlib sections correctly

* refactor(uefi): align the AMD zlib decoder with section evidence

---------

Co-authored-by: ShuaixinHuang <ShuaixinHuang@users.noreply.github.com>
Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-20 01:02:01 +00:00
morluto ba2d70d71e fix(javascript): retain numeric reads from projected arrays (#12624) 2026-11-20 01:01:22 +00:00
morluto e9ecf900d2 fix(uefi): enforce volume dialect for large FFS files (#12614)
* fix(uefi): enforce volume dialect for large FFS files

* fix(uefi): retain siblings after interrupted FFS2 headers
2026-11-20 00:57:48 +00:00
morluto c98b956da1 refactor(nativeaot): share mapped PE scalar reads (#12610)
refactor(nativeaot): share mapped scalar reads
2026-11-20 00:54:17 +00:00
morluto b8e65d24af fix(windows): retain target uncertainty when ExtraData overruns (#12612) 2026-11-20 00:48:15 +00:00
morluto c1de510702 fix(javascript): retain read proof across inactive destructuring defaults (#12613)
fix(javascript): retain destructuring proof across inactive defaults
2026-11-20 00:48:03 +00:00
RRFZ f1ef301f36 refactor(apple): share Mach-O header and FAT slice field reads (#12611) 2026-11-20 00:45:29 +00:00
morluto 5664a6fbd4 docs: clarify parser coverage and verification ownership 2026-11-19 19:42:28 -05:00
RRFZandmorluto 0be83b62fc fix(binary): retain unconfirmed composite clients until close succeeds (#12599)
* fix(binary): retain unconfirmed composite clients until close succeeds

* fix(binary): settle synthesized close failures after client retry

---------

Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-20 00:40:51 +00:00
ShuaixinHuangandShuaixinHuang d405115e41 fix(ci): make recorded crash APT refresh bounded and observable (#12607)
Co-authored-by: ShuaixinHuang <ShuaixinHuang@users.noreply.github.com>
2026-11-20 00:36:28 +00:00
ShuaixinHuangandShuaixinHuang e36e5d46e8 fix(ci): budget the binary layout cross-toolchain download (#12605)
Co-authored-by: ShuaixinHuang <ShuaixinHuang@users.noreply.github.com>
2026-11-20 00:29:28 +00:00
RRFZ 18f102d692 refactor(elf): read core file and auxiliary words through BinaryReader (#12606) 2026-11-20 00:27:17 +00:00
Vinícius Andrade 524a0906c7 fix(uefi): recognize the PI firmware file system 3 GUID (#12602)
* fix(uefi): recognize the PI firmware file system 3 GUID

FFS3_FILE_SYSTEM_GUID held 54731207-5c41-4cbd-b5e5-cd26d80770b1, which
is not a published file-system GUID. The PI Specification and EDK II
define EFI_FIRMWARE_FILE_SYSTEM3_GUID as
5473c07a-3dcb-4dca-bd6f-1e9689e7349a, so a real FFS3 volume was
classified as an unsupported file system: its files were not walked and
flash admission did not count it.

Use the published value. The opaque-volume acceptance case built its
walked volume from the same literal and now declares the published GUID.

* test(uefi): pin the FFS3 GUID to its published raw bytes

Every FFS3 fixture was built from FFS3_FILE_SYSTEM_GUID itself, so the
tests followed whatever value the constant held. Check the constant
against the sixteen bytes EDK II defines for
EFI_FIRMWARE_FILE_SYSTEM3_GUID, as the FFS2 case does for its GUID.
2026-11-19 19:23:16 -05:00
Nianze Wuandmorluto 46f6d4638e fix(windows): check fixed Shell Link ExtraData sizes (#10361)
* fix(windows): check fixed Shell Link ExtraData sizes

* fix(windows): preserve unreadable shortcut target uncertainty

---------

Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-19 19:21:37 -05:00
RRFZ 0fcace1ad1 fix(nuget): select publisher metadata from the first eligible leaf (#12603) 2026-11-19 19:20:10 -05:00
RRFZ d48f21bf87 refactor(nativeaot): read ReadyToRun directories within their PE section (#12592) 2026-11-20 00:19:20 +00:00
RRFZ 196f3a47b2 perf(ci): run Windows package verification alongside capability tests (#12588)
* perf(ci): run Windows package verification alongside capability tests

* fix(ci): verify the Windows cache writer on selected PRs
2026-11-19 19:18:21 -05:00
morluto e11437af90 fix(uf2): exclude addressless comments from flash copy inference (#12596)
* fix(uf2): ignore comment addresses in copy counting

* test(uf2): cover comments sharing flash block numbers
2026-11-20 00:16:05 +00:00
morluto 79656ad97a fix(nuget): distinguish malformed archives from caller cancellation (#12597)
* fix(nuget): preserve ZIP parser failure provenance under cancellation

* fix(nuget): observe cancellation across ZIP directory enumeration
2026-11-20 00:15:44 +00:00
morluto e736d90bdf fix(javascript): preserve nested reads through numeric array properties (#12595)
fix(javascript): retain nested reads through numeric array properties
2026-11-20 00:09:58 +00:00
morluto a611944533 fix(windows): report unexamined bytes in shortcut item lists (#12594) 2026-11-20 00:09:51 +00:00
morluto cb380f0ab3 refactor(plist): share binary scalar and key reads (#12593)
refactor(apple): share binary plist scalar reads
2026-11-20 00:07:02 +00:00
morluto b2bb427553 fix(cleanup): report live resources independently of failed closes (#12589)
fix(cleanup): follow live resources across owner close failures
2026-11-20 00:00:10 +00:00
morluto 2ff20ce32e fix(javascript): preserve object sibling reads across safe iterator close (#12587)
* fix(javascript): preserve sibling array reads under object bindings

* fix(javascript): require coercible nested object pattern receivers
2026-11-19 23:57:06 +00:00
morluto 2b4442c0e9 refactor(ghidra): share DOS relocation word reads (#12585)
refactor(ghidra): read DOS relocation words through BinaryReader
2026-11-19 23:55:59 +00:00
morluto 055c3cda4a fix(amdgpu): report the metadata limit actually reached (#12586)
fix(gpu): distinguish AMD metadata nesting and value limits
2026-11-19 23:55:34 +00:00
morluto c8a783d7cf refactor(windows): share Shell Link location field reads (#12584) 2026-11-19 23:54:18 +00:00
RRFZ e99fb5eb92 fix(release): finish closing exposure readers after individual failures (#12583) 2026-11-19 18:50:46 -05:00