Skip to content

fix new replay crash#2846

Merged
mercury233 merged 5 commits into
masterfrom
patch-random-replay
Jun 19, 2025
Merged

fix new replay crash#2846
mercury233 merged 5 commits into
masterfrom
patch-random-replay

Conversation

@purerosefallen

Copy link
Copy Markdown
Collaborator

No description provided.

@salix5

salix5 commented Jun 19, 2025

Copy link
Copy Markdown
Collaborator

Maybe we should use fseek

@purerosefallen

Copy link
Copy Markdown
Collaborator Author

Maybe we should use fseek

then you make one

@purerosefallen

Copy link
Copy Markdown
Collaborator Author

https://chatgpt.com/share/6853cb2e-f788-800e-b8c8-09d554f01b18

some changes may required

@purerosefallen purerosefallen marked this pull request as draft June 19, 2025 08:33
@purerosefallen purerosefallen marked this pull request as ready for review June 19, 2025 09:42
@salix5 salix5 requested a review from Copilot June 19, 2025 09:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adjust the replay loading logic to fully read the YRP2 header and prevent crashes due to incomplete data.

  • Expand the fread call to cover the remainder of the header after the base ID
  • Use pointer arithmetic to calculate the offset and size for reading the rest of pheader

Comment thread gframe/replay.cpp Outdated
@mercury233 mercury233 merged commit f7a977c into master Jun 19, 2025
8 checks passed
@mercury233 mercury233 deleted the patch-random-replay branch June 19, 2025 11:24
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.

4 participants