Skip to content

plugins/S3: Fix zero callback

Mykola Ivanets requested to merge stenavin/nbdkit:s3-fixes into master

Correct zero callback behavior when the FLAG_MAY_TRIM flag is set, but the request is not block size aligned. The issue arises because the trim implementation rounds up the offset and rounds down the length, resulting in unaligned parts of the initial range not being zeroed out. Corresponding test cases have been added. Using trim in the zero callback does not make sense for the S3 plugin.

Merge request reports