Skip to content

Proper fix for GUI_FitForward callsite using UB#46

Open
stefanriemens wants to merge 1 commit intomasterfrom
fix_GUI_FitForward_properly
Open

Proper fix for GUI_FitForward callsite using UB#46
stefanriemens wants to merge 1 commit intomasterfrom
fix_GUI_FitForward_properly

Conversation

@stefanriemens
Copy link
Collaborator

Use pointer arithmatic instead of iterators. This is still ugly code, but at least it is now valid C++ and, not unimportantly... it actually compiles, as opposed to Ilyass' fix in #39

…d that takes iterators for no good reason. Instead, use pointer arithmatic instead of iterators - pointing one-past-the-end is valid, so this is is a valid way to fix the original deref-an-end-iterator-is-illegal bug.
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.

1 participant