Skip to content

[SharedCache] Fix uninitialized loaded field for mappings returned by BNDSCViewGetAllImages#6285

Merged
0cyn merged 1 commit into
Vector35:devfrom
WeiN76LQh:fix-loaded-BNDSCViewGetAllImages
Jan 8, 2025
Merged

[SharedCache] Fix uninitialized loaded field for mappings returned by BNDSCViewGetAllImages#6285
0cyn merged 1 commit into
Vector35:devfrom
WeiN76LQh:fix-loaded-BNDSCViewGetAllImages

Conversation

@WeiN76LQh
Copy link
Copy Markdown

BNDSCViewGetAllImages was not initializing the field loaded on BNDSCImageMemoryMapping entries in the mappings array for each BNDSCImage. This would result in uninitialized values being returned, incorrectly indicating whether a memory region for an image was loaded or not.

The fix asks the binary view if a section start address is a valid offset to determine if the mapping is loaded or not. I'm not sure if this is the most performant solution but it fixes the issue.

@0cyn 0cyn force-pushed the fix-loaded-BNDSCViewGetAllImages branch from 4c07c97 to 8f83f6e Compare January 8, 2025 19:08
@0cyn 0cyn force-pushed the fix-loaded-BNDSCViewGetAllImages branch from 8f83f6e to faac469 Compare January 8, 2025 20:09
@0cyn 0cyn merged commit faac469 into Vector35:dev Jan 8, 2025
@emesare emesare added this to the Gallifrey milestone Apr 21, 2025
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.

3 participants