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

BLADERUNNER: Ensure the Color256 struct is correctly packed #1838

Merged
merged 1 commit into from Sep 11, 2019

Conversation

ccawley2011
Copy link
Member

This fixes a crash on RISC OS due to the size of the structure being padded to a multiple of 4 bytes, and ScreenEffects::readVqa() assuming the structure size is 3 when reading the palette data.

@peterkohaut peterkohaut merged commit 5413e89 into scummvm:master Sep 11, 2019
@ccawley2011 ccawley2011 deleted the bladerunner-struct-pack branch September 11, 2019 17:46
@sev-
Copy link
Member

sev- commented Sep 11, 2019

Well, this should be in fact fixed by properly reading the original data. Instead of stream->read(&entry->palette, sizeof(Color256) * 16); a loop should be used. Otherwise, it is not portable.

lotharsm pushed a commit to lotharsm/scummvm that referenced this pull request Oct 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants