-
Notifications
You must be signed in to change notification settings - Fork 102
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
memmove for overlaping memory #434
Conversation
I'm unsure what to do next. I assume some huge CI job needs to run to test this? |
Signed-off-by: Tyler Weaver <maybe@tylerjw.dev>
f55e769
to
dfd0705
Compare
Well, the commit needs a |
Is there a way to add testing this with asan (as that is how we found this)? |
Theoretically, https://ci.ros2.org/view/nightly/job/nightly_linux_address_sanitizer/ should catch this. So if there is a test that exercises it, it should show up there. |
Added the signed-off-by line. I'll try to add a test that exercises this. |
79acfab
to
1df981d
Compare
I added a test. |
Signed-off-by: Tyler Weaver <maybe@tylerjw.dev>
1df981d
to
0bc8bdb
Compare
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.
I tested this locally with enabling asan, and it does show the problem. So the test seems good. I left one thing inline that I think we should add a comment to; once that is added I'll run full CI on this.
Signed-off-by: Tyler Weaver <maybe@tylerjw.dev>
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.
lgtm 👍
* memmove for overlaping memory * Add test for memcpy to memmove Signed-off-by: Tyler Weaver <maybe@tylerjw.dev>
* memmove for overlaping memory * Add test for memcpy to memmove Signed-off-by: Tyler Weaver <maybe@tylerjw.dev> Signed-off-by: Tyler Weaver <tyler@picknik.ai>
@Mergifyio backport iron humble |
✅ Backports have been created
|
* memmove for overlaping memory * Add test for memcpy to memmove Signed-off-by: Tyler Weaver <maybe@tylerjw.dev> (cherry picked from commit 5b99aad)
* memmove for overlaping memory * Add test for memcpy to memmove Signed-off-by: Tyler Weaver <maybe@tylerjw.dev> (cherry picked from commit 5b99aad)
Fixes #433