Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIRROR] Add a bounds check to prevent runtimes on the ripple shuttle port #865

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

Steals-The-PRs
Copy link
Collaborator

Mirrored on Skyrat: Skyrat-SS13/Skyrat-tg#25294
Original PR: tgstation/tgstation#79959

This appears to sometimes runtime when the target stationary port is somehow a different size to the ripple port. The code had an out of bounds check of a sort, but it doesn't actually work because the array accesses runtime instead of returning a null

As to why the turfs available were not the same? most likely because the bounds overlapped the world edge due to a fuck huge shuttle.

I have a feeling even if this proc completes something would fail later anyway.

edit: oh so it was the lance shuttle which is fuck hueg

#79961 is related but not fixed by this.

… port [MDB IGNORE] (#25294)

* Add a bounds check to prevent runtimes on the ripple shuttle port (#79959)

This appears to sometimes runtime when the target stationary port is
somehow a different size to the ripple port. The code had an out of
bounds check of a sort, but it doesn't actually work because the array
accesses runtime instead of returning a null

As to why the turfs available were not the same? most likely because the
bounds overlapped the world edge due to a fuck huge shuttle.

I have a feeling even if this proc completes something would fail later
anyway.

edit: oh so it was the lance shuttle which is fuck hueg

#79961 is related but not fixed by this.

* Add a bounds check to prevent runtimes on the ripple shuttle port

---------

Co-authored-by: oranges <[email protected]>
@Iajret Iajret merged commit 0eaed15 into master Nov 28, 2023
24 checks passed
@Iajret Iajret deleted the upstream-mirror-25294 branch November 28, 2023 23:44
Iajret added a commit that referenced this pull request Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants