Skip to content

BoingIconBar: fix crash on screen reset, menu and prefs save - #1113

Merged
Kalamatee merged 1 commit into
aros-development-team:masterfrom
retrofaza:master
Sep 1, 2026
Merged

BoingIconBar: fix crash on screen reset, menu and prefs save#1113
Kalamatee merged 1 commit into
aros-development-team:masterfrom
retrofaza:master

Conversation

@retrofaza

Copy link
Copy Markdown
Contributor

GetDTAttrs() writes IPTR-sized (8 byte) values into the passed storage, but LoadBackground() passed pointers to the 4-byte LONG fields of BackgroundData[].

Also harden the surrounding parsing: bound Levels[] writes in ReadPrefs (SUM_LEVELS, two slots reserved for Settings/Quit), restore the IconCounter < SUM_ICON loop guard, bound IT_Labels[100] in SetWindowParameters/IconLabel, and NULL freed bitmaps and clear stale icon flags in ScreenResetCleanup/Reload.

GetDTAttrs() writes IPTR-sized (8 byte) values into the passed storage,
but LoadBackground() passed pointers to the 4-byte LONG fields of
BackgroundData[].

Also harden the surrounding parsing: bound Levels[] writes in ReadPrefs
(SUM_LEVELS, two slots reserved for Settings/Quit), restore the
IconCounter < SUM_ICON loop guard, bound IT_Labels[100] in
SetWindowParameters/IconLabel, and NULL freed bitmaps and clear stale
icon flags in ScreenResetCleanup/Reload.
@Kalamatee
Kalamatee merged commit a16ce00 into aros-development-team:master Sep 1, 2026
2 of 3 checks passed
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.

2 participants