Commit Graph
18 Commits
Author SHA1 Message Date
Dean 8e77163672 Merge pull request #16192 from MarcZX10/fix-savedata-dialog-open-validates-guest-memory
fix(libSceSaveDataDialog.native): validate guest memory in sceSaveDataDialogOpen
2026-11-11 23:51:26 +13:00
MarcZX10 26d30a43f4 fix(libSceSaveDataDialog.native): require a terminated open directory name
sceSaveDataDialogOpen passed a SaveDataDirName to snprintf as a C string.
A name that fills all 32 bytes without a NUL made snprintf read past the
field. Check for a NUL with memchr, as sceSaveDataBackup does, and return
SAVE_DATA_DIALOG_ERROR_ARG_NULL when there is none.
2026-11-05 20:04:47 +00:00
MarcZX10 92850a5cc6 fix(libSceSaveDataDialog.native): copy each open directory name in from guest memory
sceSaveDataDialogOpen read every SaveDataDirName of the guest dir_names
array in place, so an unreadable array entry faulted the host. Copy each
entry in with GuestCopyIn and return SAVE_DATA_DIALOG_ERROR_ARG_NULL when
an entry cannot be read.
2026-11-05 20:04:36 +00:00
MarcZX10 1a5c6fe041 fix(libSceSaveDataDialog.native): copy the open items in from guest memory
sceSaveDataDialogOpen dereferenced the guest SaveDataDialogItems directly,
so an unreadable items pointer faulted the host. Copy the structure in with
GuestCopyIn and return SAVE_DATA_DIALOG_ERROR_ARG_NULL when it cannot be
read. The dialog state is now written only after every read has succeeded,
so a rejected open keeps the result of the previous dialog.
2026-11-05 20:04:11 +00:00
MarcZX10 665631d6ce fix(libSceSaveDataDialog.native): copy the open parameter in from guest memory
sceSaveDataDialogOpen dereferenced the guest SaveDataDialogParam directly,
so an unreadable parameter faulted the host. Copy the structure in with
GuestCopyIn and return SAVE_DATA_DIALOG_ERROR_ARG_NULL when it cannot be
read, the error the same file already uses for unwritable result pointers.
2026-11-05 20:03:41 +00:00
zzokm 120366fb65 Merge remote-tracking branch 'upstream/main' into feat/libscesavedatadialog-progress-bar-validation 2026-11-05 16:33:43 +02:00
pushkarreddyy bb8eb4af2b fix(libSceSaveDataDialog): copy out only assigned fields and copy directory name last 2026-11-04 23:13:11 +05:30
pushkarreddyy 64d1e14fe0 fix(libSceSaveDataDialog): return ARG_NULL from sceSaveDataDialogGetResult for unwritable pointers 2026-11-04 23:13:11 +05:30
zzokm 955888cb6c feat(libSceSaveDataDialog.native): add target and rate validation to progress bar updates 2026-11-03 05:25:34 +02:00
boykopovar f38d29fd08 refactor(sdk): add canonical headers for remaining libraries 2026-10-24 23:17:42 +03:00
lakhantheboss 22cfc4b0bb fix(libSceSaveDataDialog.native): initialize result directory name on empty selection
When sceSaveDataDialogGetResult is passed a non-null dir_name pointer but no directory name was selected by the dialog, write the empty string into dir_name so the caller's output buffer is properly null-terminated instead of retaining uninitialized bytes.
2026-10-21 19:57:36 +05:30
Nithishvelan M 9518b73656 fix(libSceSaveDataDialog.native): return NOT_RUNNING from progress bar updates when not running 2026-10-17 23:56:59 +05:30
Nithishvelan M 5e2e135280 fix(libSceSaveDataDialog.native): validate dialog state in close, get result and terminate 2026-10-15 19:14:21 +05:30
TibixDev 97f16be342 fix(savedata): keep progress dialogs running until closed
Opening a save progress dialog immediately reported FINISHED. Skyrim
waited for RUNNING before writing SAVEDATA.DAT and never resumed. Keep
progress-bar mode running through polling and progress updates until
Close, retaining the existing automatic responses for other dialog modes.

Add lifecycle regression coverage for repeated polling, completion,
reopening, result metadata and ordinary selection dialogs. The test
failed on the previous implementation and passes with the fix on Fedora
44 Release. Correcting the live dialog state recovered a blocked Skyrim
save without restarting its session.

Written with AI assistance.
2026-10-08 01:37:34 +03:00
boykopovar abc72da741 feat(libs): define vabi macros + add to declarations 2026-09-10 08:07:03 +03:00
boykopovar 8ad0a9897d feat(libs): libSceCommonDialog + stub libSceSaveDialog impl 2026-09-07 23:24:55 +03:00
boykopovar 6123893998 feat(libs): throw not impl ex in every stub 2026-09-06 15:05:04 +03:00
boykopovar 59bee8d187 feat(libs): add libs function signatures 2026-08-20 23:18:16 +03:00