Skip to content

fix(rla): Harden against corrupted files#5153

Open
lgritz wants to merge 2 commits intoAcademySoftwareFoundation:mainfrom
lgritz:lg-rla5152
Open

fix(rla): Harden against corrupted files#5153
lgritz wants to merge 2 commits intoAcademySoftwareFoundation:mainfrom
lgritz:lg-rla5152

Conversation

@lgritz
Copy link
Copy Markdown
Collaborator

@lgritz lgritz commented Apr 20, 2026

  1. Harden against buffer overruns from malformed RLE blocks. The simple fix is the if (count > ...) clauses on lines 503 & 510, but I also took the opportunity to rewrite decode_rle_span using spans rather than raw pointers.

Fixes #5152

  1. Clean up seeking methodology to be more robust.

Fixes #5159

Fixes 5152

Signed-off-by: Larry Gritz <lg@larrygritz.com>
@lgritz
Copy link
Copy Markdown
Collaborator Author

lgritz commented Apr 23, 2026

I have amended the PR to also incorporate the fixes for #5159

@lgritz lgritz changed the title fix(rla): Harden against buffer overruns from malformed RLE blocks fix(rla): Harden against corrupted files Apr 23, 2026
Clean up seeking methodology to be more robust.

Fixes 5159

Signed-off-by: Larry Gritz <lg@larrygritz.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant