covermyass icon indicating copy to clipboard operation
covermyass copied to clipboard

Shredding heavy files can cause memory overflow

Open sundowndev opened this issue 1 year ago • 0 comments

Previously, we used to write random data to files by set of 1024 bytes. Which means that for a file of 4096 bytes, we perform 4 write operations to rewrite the file entirely. Since https://github.com/sundowndev/covermyass/pull/10, we're now doing a single write operation per file. This can lead the program to crash if the file is too heavy (we should perform some benchmarks to confirm that). Doing a progressive shredding instead can solve that case.

sundowndev avatar Jan 26 '23 08:01 sundowndev