Fixes and workarounds for some Coverity scan reports.

This commit is contained in:
Milan Broz
2018-04-30 12:26:12 +02:00
parent 7fede3ee45
commit 2a1a773777
7 changed files with 23 additions and 11 deletions

View File

@@ -172,6 +172,7 @@ static int FEC_process_inputs(struct crypt_device *cd,
goto out;
}
/* coverity[tainted_data] */
r = decode_rs_char(rs, rs_block);
if (r < 0) {
log_err(cd, _("Failed to repair parity for block %" PRIu64 "."), n);