[NTOSKRNL] Avoid integer overflow when computing VACB read/write size
authorPierre Schweitzer <pierre@reactos.org>
Fri, 21 Sep 2018 06:31:05 +0000 (08:31 +0200)
committerPierre Schweitzer <pierre@reactos.org>
Fri, 21 Sep 2018 06:37:20 +0000 (08:37 +0200)
commit15a3ca08b045941efdb49f15ec71beb41eb777f2
tree482335d608e81dc1bab6934fd06272c0d8856107
parentef016bfe0a9dc3cc7924671277b44884e39d89d5
[NTOSKRNL] Avoid integer overflow when computing VACB read/write size

This could be triggered when attempting to read/write to really big
files. It was causing an attempt to read 0 bytes in Cc, leading to
asserts failure in the kernel (and corrupted file).

CORE-15067
ntoskrnl/cc/copy.c