Skip to content

use spans to make connection receive and send safe from oob access - #130

Merged
Franziska-Mueller merged 5 commits into
mainfrom
bugfix/2026-07-30-oob-bug-recv
Aug 11, 2026
Merged

use spans to make connection receive and send safe from oob access#130
Franziska-Mueller merged 5 commits into
mainfrom
bugfix/2026-07-30-oob-bug-recv

Conversation

@Franziska-Mueller

Copy link
Copy Markdown
Contributor

This PR uses std::span introduced in C++20 to prevent out-of-bounds access in send/receive functions in connection.h.

fnordspace
fnordspace previously approved these changes Aug 6, 2026

@fnordspace fnordspace left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small remark otherwise looks good to me.

Comment thread asset_utils.cpp Outdated
@Franziska-Mueller Franziska-Mueller moved this from 🧪 Testing to 👀 In review in qubic Aug 10, 2026
fnordspace
fnordspace previously approved these changes Aug 11, 2026

@fnordspace fnordspace left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two more points to look at.

Comment thread connection.cpp Outdated
Comment thread connection.h Outdated
Comment thread connection.h Outdated

@fnordspace fnordspace left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Franziska-Mueller
Franziska-Mueller merged commit d8fb564 into main Aug 11, 2026
6 checks passed
@github-project-automation github-project-automation Bot moved this from 👀 In review to ✅ Done in qubic Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants