Fix out-of-bounds access in three_parts. Fix mishandling of non-null terminated string_views in jwt_set::case_compare. Address several conversion and unreachability warnings

This commit is contained in:
Dennis Hezel 2022-05-13 19:13:38 +02:00
parent 0d662241da
commit 6c22d941a0
6 changed files with 11 additions and 33 deletions

View file

@ -52,7 +52,6 @@ struct AlgorithmErrCategory: std::error_category
return "invalid key";
};
return "unknown algorithm error";
assert (0 && "Code not reached");
}
};
@ -89,7 +88,6 @@ struct DecodeErrorCategory: std::error_category
return "key not required for NONE algorithm";
};
return "unknown decode error";
assert (0 && "Code not reached");
}
};
@ -128,7 +126,6 @@ struct VerificationErrorCategory: std::error_category
return "type conversion error";
};
return "unknown verification error";
assert (0 && "Code not reached");
}
};