mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-05-15 09:18:33 +00:00
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:
parent
0d662241da
commit
6c22d941a0
6 changed files with 11 additions and 33 deletions
|
@ -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");
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue