summaryrefslogtreecommitdiffstats
path: root/vendor/gix-hash/src/object_id.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/gix-hash/src/object_id.rs')
-rw-r--r--vendor/gix-hash/src/object_id.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/gix-hash/src/object_id.rs b/vendor/gix-hash/src/object_id.rs
index 4234d63b5..4738116a3 100644
--- a/vendor/gix-hash/src/object_id.rs
+++ b/vendor/gix-hash/src/object_id.rs
@@ -55,7 +55,7 @@ pub mod decode {
ObjectId::Sha1({
let mut buf = [0; 20];
faster_hex::hex_decode(buffer, &mut buf).map_err(|err| match err {
- faster_hex::Error::InvalidChar => Error::Invalid,
+ faster_hex::Error::InvalidChar | faster_hex::Error::Overflow => Error::Invalid,
faster_hex::Error::InvalidLength(_) => {
unreachable!("BUG: This is already checked")
}