DREAMWEB: Added assert on memcpy overlap

This commit is contained in:
Vladimir Menshakov 2011-06-25 22:12:52 +04:00
parent d21402ef3c
commit d413494f5b

View File

@ -466,6 +466,7 @@ public:
assert(size != 0xffff);
uint8 *dst = es.ptr(di, size);
uint8 *src = ds.ptr(si, size);
assert(src < dst || src >= dst + size);
memcpy(dst, src, size);
di += size;
si += size;