fix(rtc): reject invalid RFC 3339 timezone offsets #429

Merged
RomainROCH merged 1 commit from upstream-pr/429 into main 2026-10-04 01:03:23 +00:00
RomainROCH commented 2026-10-03 02:29:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by RomainROCH on 2026-10-03T02:29:04Z.


What

Reject RFC 3339 numeric timezone offsets whose hours exceed 23 or whose minutes exceed 59. Return the existing bad-parse error before assigning the output tick.

An offset such as +00:99 previously parsed successfully and changed the output tick.

Tested

Tested commit: 44c9c77a7cffa7eaf250b70b2c8d5fc96f6e1318, based on main at 7d40a57d185b30735fbc519a9bdf2548d4bcb87f.

The full fork Build workflow succeeded on both platforms: Release configuration, default build, libs target, and CTest with --repeat until-fail:3.

Platform Passed tests Skipped tests Failed tests
Linux 123 2 0
Windows 115 11 0

The focused guest_rtc tests passed on both platforms in all three repetitions. The skipped tests are GPU execution tests: two on Linux and eleven on Windows.

These are fork results on the specified commit. An upstream workflow requiring maintainer approval has not executed until approved.

The regression failed before the correction. Coverage includes positive and negative invalid minute/hour boundaries, unchanged output on failure, and valid Z, +01:30, +/-00:00, +/-00:59, and +/-23:59 offsets.

The existing RTC tests remain in place. #302 adds sceRtcParseDateTime in this file; it does not implement this validation in sceRtcParseRFC3339. All fixtures are synthetic. No game or homebrew title was tested; these results do not establish game compatibility.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw; no silent stub added
  • No investigation notes, reports or images added to the repository
  • No new third-party code
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4723475246 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/429). Originally posted by [RomainROCH](https://github.com/RomainROCH) on 2026-10-03T02:29:04Z. --- ### What Reject RFC 3339 numeric timezone offsets whose hours exceed 23 or whose minutes exceed 59. Return the existing bad-parse error before assigning the output tick. An offset such as `+00:99` previously parsed successfully and changed the output tick. ### Tested Tested commit: `44c9c77a7cffa7eaf250b70b2c8d5fc96f6e1318`, based on `main` at `7d40a57d185b30735fbc519a9bdf2548d4bcb87f`. The full [fork Build workflow](https://github.com/RomainROCH/AnyPS5/actions/runs/37088839965) succeeded on both platforms: Release configuration, default build, `libs` target, and CTest with `--repeat until-fail:3`. | Platform | Passed tests | Skipped tests | Failed tests | | --- | ---: | ---: | ---: | | Linux | 123 | 2 | 0 | | Windows | 115 | 11 | 0 | The focused `guest_rtc` tests passed on both platforms in all three repetitions. The skipped tests are GPU execution tests: two on Linux and eleven on Windows. These are fork results on the specified commit. An upstream workflow requiring maintainer approval has not executed until approved. The regression failed before the correction. Coverage includes positive and negative invalid minute/hour boundaries, unchanged output on failure, and valid `Z`, `+01:30`, `+/-00:00`, `+/-00:59`, and `+/-23:59` offsets. The existing RTC tests remain in place. #302 adds `sceRtcParseDateTime` in this file; it does not implement this validation in `sceRtcParseRFC3339`. All fixtures are synthetic. No game or homebrew title was tested; these results do not establish game compatibility. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw; no silent stub added - [x] No investigation notes, reports or images added to the repository - [x] No new third-party code - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!429
No description provided.