-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolve UB found by miri #46
Conversation
69df322
to
08daddc
Compare
Hm, compatibility with C API may be tricky. |
08daddc
to
65510e0
Compare
This change breaks C ABI compatibility (requiring new |
Unless... only |
65510e0
to
76ad82c
Compare
Okay, this introduces a breaking change where |
76ad82c
to
fcca3cb
Compare
Wait, no, |
fcca3cb
to
86d58c7
Compare
Okay, I think that's it. Miri found legitimate bugs in the library: |
I’d be inclined to drop the C API. I don’t know of anyone using it, and it’s not really maintained. |
86d58c7
to
bb4533a
Compare
As for C API, I think it should be removed with 0.5.0, but it's not necessary to remove it for this change. |
3685fec
to
9c05ddb
Compare
9c05ddb
to
9e6da0d
Compare
Updated to run thread tests on miri, now that Miri supports threads. |
(*self.buf.get()).heap.aux | ||
} | ||
|
||
unsafe fn set_aux(&self, aux: u32) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be &mut self
like set_len?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No as it's used by make_buf_shared
which is used by public unsafe_subtendril
method which accepts &self
. Not that this matters because set_aux
isn't a public method anyway.
@bors-servo r+ |
📌 Commit 9e6da0d has been approved by |
☀️ Test successful - checks-travis |
Fixes #41. Fixes #44.