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

Status bar accepts out of range indices #3242

Open
SamVanheer opened this issue Feb 5, 2022 · 0 comments
Open

Status bar accepts out of range indices #3242

SamVanheer opened this issue Feb 5, 2022 · 0 comments

Comments

@SamVanheer
Copy link

The status bar HUD element accepts out of range indices in the user message handlers:

if ( line < 0 || line > MAX_STATUSBAR_LINES )

if ( index < 1 || index > MAX_STATUSBAR_VALUES )

They should check the values like this:

if ( line < 0 || line >= MAX_STATUSBAR_LINES )

if ( index < 1 || index >= MAX_STATUSBAR_VALUES )
tmp64 added a commit to tmp64/BugfixedHL-Rebased that referenced this issue Feb 27, 2022
hammermaps added a commit to sohl-modders/Updated-SOHL-1.2 that referenced this issue Apr 24, 2023
@SamVanheer SamVanheer reopened this May 23, 2023
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

No branches or pull requests

1 participant