symbiotic icon indicating copy to clipboard operation
symbiotic copied to clipboard

Copying of overlapping memory regions is undetected

Open lzaoral opened this issue 3 years ago • 1 comments

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

lzaoral avatar Jul 20 '21 08:07 lzaoral

Yep, you are right.

mchalupa avatar Jul 20 '21 11:07 mchalupa