We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8b610f commit 20bc328Copy full SHA for 20bc328
src/stage2.rs
@@ -8,6 +8,8 @@ use value_trait::StaticNode;
8
#[cfg_attr(not(feature = "no-inline"), inline(always))]
9
#[allow(clippy::cast_ptr_alignment)]
10
pub fn is_valid_true_atom(loc: &[u8]) -> bool {
11
+ debug_assert!(loc.len() >= 8, "input too short to safely read a u64 from");
12
+
13
// TODO is this expensive?
14
let mut error: u64;
15
unsafe {
0 commit comments