Skip to content

12.6.29: audit fixes, landscape Files rows (#931), FPKG warning removed - #935

Merged
phantomptr merged 25 commits into
mainfrom
release-12.6.29
Nov 25, 2026
Merged

phantomptr merged 25 commits into
mainfrom
release-12.6.29

Conversation

@phantomptr

Copy link
Copy Markdown
Owner
  • FPKG: removed the above-13.60 "won't start" warning (no public jailbreak past 13.60, so it could never show) and the firmware-based image recommendation in Convert; dead strings pruned in 21 languages. The 11.61–13.60 launch hint and the fake-package note stay.
  • [UI/UX] Filenames are heavily truncated in landscape mode due to inline action buttons #931: phone landscape (touch, height ≤ 520px) uses the phone Files row: wrapped name, meta below, actions behind ⋮. New phone:/roomy: Tailwind variants; e2e cases at 915x412 and 844x390.
  • Audit (engine): received save no longer deleted by "Use this save"; RP hex key parsers refuse non-hex instead of panicking; mgmt read loop cuts an over-long reply; content id must be a plain name before naming the built package (path traversal); WebDAV 206 must start at the asked offset.
  • Audit (client / desktop): save-archive scratch dirs checked (title id ..), failed zip keeps the picked file, roster race in save-backup sync, watch player opens no decoder after stop, bug-report snapshot per console, helper-send status into the console's own record. Embedded pages rebuilt.
  • Audit (helper): cheat writes only to the game's own module, unrecorded game patch rolled back, over-long SHN values refused, SDK Changer bounds + depth limit, uninitialised unlink path on OOM, restore manifest names stay inside the snapshot.
  • Audit (release): verify-release --promote and publish never move latest to an older version; fast-release watches its own run; stale npm audit allowance removed.

Local: all gates (fmt, clippy, engine 4.7k tests, payload host tests, typecheck, lint, vitest, i18n, apidoc, embedded), desktop clippy, security scan, 42 related e2e (one timing flake passed on rerun).

Closes #931.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT

phantomptr and others added 25 commits November 25, 2026 00:22
… past 13.60, so it can't show

Keeps the fake-package note and the 11.61-13.60 kstuff hint on a failed launch. Convert marks the
package once a game is checked; the image-on-this-firmware recommendation and its strings go.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
A phone in landscape is wider than `sm`, so Files rows got the desktop
layout: every action as an inline button and the file name squeezed to
nothing. New Tailwind variants in index.css, `phone:` (below `sm`, or a
coarse pointer with a viewport at most 520px tall, the same test as
PHONE_LANDSCAPE_QUERY) and its exact complement `roomy:`, now drive the
row's name/meta block, the inline action buttons and the ⋮ trigger, so a
sideways phone wraps the name (up to 3 lines) with tag and size below and
keeps the actions behind ⋮. Desktop (fine pointer) is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
`gh release edit --latest` moves GitHub's latest pointer onto any release, an
older one included. The stable updater manifest, the iPhone source, the site
and docker-engine's promote job all follow that pointer (the promote job's
never-backwards check compares against it, so it would move :latest back
too). Promoting an old pre-release after a newer release is out now stops
with the command that publishes it without moving latest. A failed lookup
(not a 404) stops instead of guessing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
After dispatching release-tag the script slept 8 s and watched the newest
listed run. When GitHub had not registered the new run yet, that was the
previous release's finished green run: "tagged vX.Y.Z" was printed even when
the new run then failed (CHANGELOG check, ci verdict), and the script only
failed five minutes later with "no publish run appeared". It now takes the
run URL gh prints, else the first run newer than the newest one before the
dispatch (run ids only grow), and fails if none appears.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
A dispatch with prerelease=false always passed make_latest=true, so a hand
dispatch for an older tag (rebuilding an old pre-release) would move GitHub's
latest back, and with it the stable updater manifest, the iPhone source and
the site. release-tag.yml only asks this for a version newer than every tag,
so its path is unchanged. Now an older version is published as a full
release with latest left where it is (and a warning); a failed lookup of the
latest release (not a 404) stops the job instead of guessing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
npm audit no longer reports GHSA-fc5q-39xc-vjpf (the lock has picomatch
4.0.7), so the allowance matched nothing. It still would have failed the
security scan on its expiry, 2026-12-17 (npm-audit-filter.mjs fails on any
expired entry), and until then would have let the advisory back in
unnoticed. Both npm audits still pass with an empty list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
elf_find_param_sites took a PT_SCE_MODULE_PARAM of 0x14 bytes as a
site (it checked only the PS4 field at 0x10), while the patcher reads
and writes the SDK pair (0x10 and 0x14) of every site. A module of
0x14..0x17 bytes at the end of a game file was read 4 bytes past the
file's mapping (a fault in the helper when the file ends on a page)
and then written past its end, growing the file. A site must now hold
both fields.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
phys_write_allowed took any module with dynlib handle 0 for the game's
own and let a physical write go there. #920 showed handle 0 of a PS4
game's process is another module (336 KiB at 0x6988c000, not the
eboot at 0x400000). A game patch XML with no AppElf took that module
as its base, has no original bytes to compare, and so wrote into it;
a physical write lands in every process mapping the page. Handle 0 is
now trusted when its path ends in eboot.bin (or cannot be read, as
before); modules under /app0 stay allowed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
xml_text cut a <ValueOn>/<ValueOff>/<Offset> text at its buffer and
trimmed the whitespace after. A pretty-printed SHN or MC4 line with
an indented value of more than 255 bytes came out shorter than a full
buffer, passed resolve_mod_locs' "value too long" check, and both
sides parsed to the same shortened length, so a cheat cut short (a
code cave without its jump back) was written into the game. The text
is now measured without its whitespace (cheats_xml_text, host-tested);
one that does not fit fills the buffer, and an offset that does not
fit becomes one that does not parse.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
…n memory runs out

op_pkg_install cleared staged[0] and job[0] only after the check that
every buffer was allocated. When one of the others failed, the exit
path read both uninitialised and could hand the garbage in staged to
unlink(). They are cleared as soon as they exist.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
walk_and_patch and walk_and_restore recursed with no depth limit. Each
level keeps one to three 1 KiB path buffers on the handler's 512 KiB
stack and an open folder, and a game folder of 1-character names fits
about 500 levels in the 1024-byte path limit: deep enough to overflow
the stack and take the helper down. Every other walker in the payload
has a cap; these now stop at 32 (a deeper folder counts as an error).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
An applied XML game patch entry is kept in one of 64 records; turning
it off puts back what its record holds. With all 64 in use (or no
memory for one), the entry was written anyway and only logged "applied
but not recorded": turning it off then found no record, reported it
off and left its bytes in the game. A free record is now checked for
before anything is written (an earlier game session's records are let
go first), and a record that still cannot be made takes the patch out
again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
…ame with / or .. is skipped)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
…dirs

save_archive_backup_finalize joined the console's title ID onto the scratch dir
unchecked and then deleted every subfolder but sce_sys. A saves-list reply with
a title ID of ".." or an absolute path pointed that at the temp root or a home
folder. The title ID must now be one plain folder name and src_dir one of our
ps5upload-save- scratch dirs. save_archive_cleanup_temp also refuses a path
with .. in it, which Path::starts_with let through.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
… to replace

save_archive_zip truncated the picked .zip with File::create and, on any error,
removed it. Picking an existing backup of the same save (the dialog's default
name) and then running out of disk, or getting no <title_id>/ folder from the
download, lost that older backup. The zip now goes to a temporary file beside it
(ReplacingFile, as save_text_file and crash_reports_zip already do) and is
renamed over the picked file only once whole.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
…s taken off the engine's list

startSaveBackupSync worked out the consoles to remove from `told`, which changed
only when a request landed. Deleting a console while the first list was still on
its way removed nothing, and the engine kept backing that console up. One list
is now sent at a time, and the latest roster goes after it lands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
WatchPlayer.stop() closed the decoder it had, but a message already on its way,
a rebuild for the closed decoder, or an H.265 codec lookup still running made a
new configured VideoDecoder that nothing closed. A phone has few hardware
decoders, so the next join could fail to decode. A stopped player now ignores
messages and opens nothing. Embedded join/pad pages rebuilt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
…ole's status

buildPs5Snapshot for another console fell back to the selected console's
connection state when runtimeByHost had no record for it. The report then
showed the selected console's helper version and kernel for the other one, and
its 'up' started a full read of a console that was never reached. An unprobed
console now reads as unknown (EMPTY_HOST_RUNTIME).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
When a sent helper answered, onUp wrote only the flat fields of the selected
console, not runtimeByHost. A switch to another tab and back restored the old
record (an older version, or down), and everything that reads runtimeByHost
(tab dots, the Convert firmware note, launch hints) kept the old helper until
the next status poll. It now uses setHostStatus, which mirrors to the screen
while that console is selected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
Share's 'use this save' handed the received .zip to the shared-save import,
which moved it into its scratch folder and then deleted that folder. The
person's only copy was gone after one use, and also when the import was
refused (wrong parts, too big, game running). The import now reads a file
where it is; the upload endpoint still cleans up its own spool.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
The regist key and RP key parsers sliced the text two bytes at a time
after checking only its length in bytes. A non-ASCII character (a key
typed into the consoles API, or one in a pairing reply) put a slice
inside it and the handler panicked; a saved one panicked again on every
wake or stream. Both parsers now accept hex digits only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
The fs.read loop appended whatever the helper sent and then computed the
bytes left as want minus what it had. A reply over the ask underflowed
that: a panic in a debug build, and in a release build the loop asked on
to the end of the file. Only the bytes asked for are kept now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
With no name typed, a package is named after the content id in the
game's param.json (PS5) or param.sfo (PS4). The only check was the PS5
id's length, so an id like ../../../../tmp/AAAA (36 characters) put the
package outside the chosen folder. A PS5 build now refuses an id with
anything but letters, digits, - and _ (a real one never has more), and
the engine names neither kind of package after such an id.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
A WebDAV ranged read took any 206 as the bytes asked for. A server or a
proxy that answered another range (clamped or restarted) put the wrong
bytes into a copied file or a package install, which then finished as
done. The answer's Content-Range must now start where the read asked,
as the link fetcher already checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
@phantomptr
phantomptr merged commit 4281909 into main Nov 25, 2026
49 checks passed
@phantomptr
phantomptr deleted the release-12.6.29 branch November 25, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[UI/UX] Filenames are heavily truncated in landscape mode due to inline action buttons

1 participant