bareos: master ec1c7b19

Author Committer Branch Timestamp Parent
Sebastian Sura Sebastian Sura master 2023-11-27 09:44 master 0544bbb0 Pending
Changeset copy-thread: add capacity check

Since the input size is a variable, we need to ensure that we hold
enough capacity to actually read the data into the buffer. Otherwise,
if we get unlucky, we will run into the situation were the first few
cbts are very small, and the rest are really big, ensuring a buffer
overflow; possibly causing a crash.
mod - core/src/vmware/vadp_dumper/copy_thread.cc Diff File
mod - core/src/vmware/vadp_dumper/copy_thread.h Diff File