Skip to content

Fix UB in SpiralIterator::operator++#481

Merged
Ryanf55 merged 1 commit into
ANYbotics:rollingfrom
Ryanf55:hotfix-spiral-iterator-ub
Nov 28, 2024
Merged

Fix UB in SpiralIterator::operator++#481
Ryanf55 merged 1 commit into
ANYbotics:rollingfrom
Ryanf55:hotfix-spiral-iterator-ub

Conversation

@Ryanf55

@Ryanf55 Ryanf55 commented Nov 8, 2024

Copy link
Copy Markdown
Collaborator

Forward port of #479 to fix undefined behavior

@Ryanf55 Ryanf55 added bug ros2 Affects ROS 2 labels Nov 8, 2024
@Ryanf55 Ryanf55 requested a review from wep21 November 8, 2024 05:40
@Ryanf55

Ryanf55 commented Nov 8, 2024

Copy link
Copy Markdown
Collaborator Author

Merge blocked by #482

@wep21

wep21 commented Nov 27, 2024

Copy link
Copy Markdown
Collaborator

@Ryanf55 rebase, please.

* Calling pop_back on an iterator past the end is UB

Signed-off-by: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com>
@Ryanf55 Ryanf55 merged commit 74dbbc8 into ANYbotics:rolling Nov 28, 2024
@Ryanf55 Ryanf55 deleted the hotfix-spiral-iterator-ub branch November 28, 2024 02:37
@Ryanf55

Ryanf55 commented Nov 28, 2024

Copy link
Copy Markdown
Collaborator Author

@Mergifyio backport jazzy
@Mergifyio backport iron
@Mergifyio backport humble

@mergify

mergify Bot commented Nov 28, 2024

Copy link
Copy Markdown

backport jazzy

✅ Backports have been created

Details

mergify Bot pushed a commit that referenced this pull request Nov 28, 2024
* Calling pop_back on an iterator past the end is UB

Signed-off-by: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com>
(cherry picked from commit 74dbbc8)
@Ryanf55

Ryanf55 commented Nov 28, 2024

Copy link
Copy Markdown
Collaborator Author

https://github.com/Mergifyio backport iron

@mergify

mergify Bot commented Nov 28, 2024

Copy link
Copy Markdown

backport iron

✅ Backports have been created

Details

mergify Bot pushed a commit that referenced this pull request Nov 28, 2024
* Calling pop_back on an iterator past the end is UB

Signed-off-by: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com>
(cherry picked from commit 74dbbc8)
@Ryanf55

Ryanf55 commented Nov 28, 2024

Copy link
Copy Markdown
Collaborator Author

@Mergifyio backport humble

@mergify

mergify Bot commented Nov 28, 2024

Copy link
Copy Markdown

backport humble

✅ Backports have been created

Details

mergify Bot pushed a commit that referenced this pull request Nov 28, 2024
* Calling pop_back on an iterator past the end is UB

Signed-off-by: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com>
(cherry picked from commit 74dbbc8)
Ryanf55 added a commit that referenced this pull request Nov 28, 2024
* Calling pop_back on an iterator past the end is UB

Signed-off-by: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com>
(cherry picked from commit 74dbbc8)

Co-authored-by: Ryan <25047695+Ryanf55@users.noreply.github.com>
Ryanf55 added a commit that referenced this pull request Nov 28, 2024
* Calling pop_back on an iterator past the end is UB

Signed-off-by: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com>
(cherry picked from commit 74dbbc8)

Co-authored-by: Ryan <25047695+Ryanf55@users.noreply.github.com>
Ryanf55 added a commit that referenced this pull request Nov 28, 2024
* Calling pop_back on an iterator past the end is UB

Signed-off-by: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com>
(cherry picked from commit 74dbbc8)

Co-authored-by: Ryan <25047695+Ryanf55@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants