Skip to content

avoid out of bounds write in unlock_notify_wait on 64 bit platforms#1399

Merged
mattn merged 1 commit into
mattn:masterfrom
calmh:uintsize
Jun 2, 2026
Merged

avoid out of bounds write in unlock_notify_wait on 64 bit platforms#1399
mattn merged 1 commit into
mattn:masterfrom
calmh:uintsize

Conversation

@calmh

@calmh calmh commented May 19, 2026

Copy link
Copy Markdown
Contributor

While C.sizeof_unit is 4, we convert to a Go uint and write it to the pointer. The Go uint is eight bytes on 64 bit platforms. Allocate the size we intend to write.

While `C.sizeof_unit` is 4, we convert to a Go uint and write it to the
pointer. The Go uint is eight bytes on 64 bit platforms.

Signed-off-by: Jakob Borg <jakob@kastelo.net>
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 51.64%. Comparing base (18cdded) to head (904664d).
⚠️ Report is 80 commits behind head on master.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1399      +/-   ##
==========================================
+ Coverage   47.16%   51.64%   +4.48%     
==========================================
  Files          12       13       +1     
  Lines        1533     1855     +322     
==========================================
+ Hits          723      958     +235     
- Misses        669      738      +69     
- Partials      141      159      +18     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mattn mattn merged commit 9accb92 into mattn:master Jun 2, 2026
11 checks passed
@mattn

mattn commented Jun 2, 2026

Copy link
Copy Markdown
Owner

Thank you

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