mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-17 07:22:41 +00:00
DREAMWEB: Added assert on memcpy overlap
This commit is contained in:
parent
d21402ef3c
commit
d413494f5b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user