Skip to content
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

Copying of overlapping memory regions is undetected #197

Open
lzaoral opened this issue Jul 20, 2021 · 1 comment
Open

Copying of overlapping memory regions is undetected #197

lzaoral opened this issue Jul 20, 2021 · 1 comment

Comments

@lzaoral
Copy link
Contributor

lzaoral commented Jul 20, 2021

Symbiotic does not detect UB when the memory regions of arguments of memcpy, strcpy or strncpy overlap. This should be quite an easy fix as we just need to add some additional asserts to corresponding implementations in lib/libc (Divine does practically the same thing).

Tests: https://github.com/aufover/aufover-benchmark/tree/main/tests/single-c/mem-overlap

@mchalupa
Copy link
Member

Yep, you are right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants