Reject odd number of hexits rather than ignoring the lone trailing hexit
This commit is contained in:
parent
fd121cfb4c
commit
ad1aec3d89
|
@ -36,7 +36,11 @@ impl HexParser {
|
|||
},
|
||||
}
|
||||
}
|
||||
Some(result)
|
||||
if buf_full {
|
||||
None // odd number of hexits
|
||||
} else {
|
||||
Some(result)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue