bytes 1.12.1
- Source
- https://github.com/tokio-rs/bytes
- Artifact scanned
bytes-1.12.1.crate- Compared with
bytes-1.12.0.crate(0 signals introduced since)- Files
- 34 scanned, 6 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 0 warn · 25 info
- Scan time
- 2.6 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 1 of 1 warn and critical signal; 1 demoted to info.
- Disclude version
- 4.3.0
- Scanned (UTC)
- 2026-10-24 03:15
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
/// /// let mut buf = &b"\x01\x02\x03\x04\x05\x06\x07\x08\x09\x10\x11\x12\x13\x14\x15\x16 hello"[..]; /// assert_eq!(0x01020304050607080910111213141516, buf.get_u128()); /// ``` -
/// /// let mut buf = &b"\x16\x15\x14\x13\x12\x11\x10\x09\x08\x07\x06\x05\x04\x03\x02\x01 hello"[..]; /// assert_eq!(0x01020304050607080910111213141516, buf.get_u128_le()); /// ``` -
/// let mut buf: &[u8] = match cfg!(target_endian = "big") { /// true => b"\x01\x02\x03\x04\x05\x06\x07\x08\x09\x10\x11\x12\x13\x14\x15\x16 hello", /// false => b"\x16\x15\x14\x13\x12\x11\x10\x09\x08\x07\x06\x05\x04\x03\x02\x01 hello", /// }; -
/// true => b"\x01\x02\x03\x04\x05\x06\x07\x08\x09\x10\x11\x12\x13\x14\x15\x16 hello", /// false => b"\x16\x15\x14\x13\x12\x11\x10\x09\x08\x07\x06\x05\x04\x03\x02\x01 hello", /// }; /// assert_eq!(0x01020304050607080910111213141516, buf.get_u128_ne()); -
/// /// let mut buf = &b"\x01\x02\x03\x04\x05\x06\x07\x08\x09\x10\x11\x12\x13\x14\x15\x16 hello"[..]; /// assert_eq!(0x01020304050607080910111213141516, buf.get_i128()); /// ``` -
/// /// let mut buf = &b"\x16\x15\x14\x13\x12\x11\x10\x09\x08\x07\x06\x05\x04\x03\x02\x01 hello"[..]; /// assert_eq!(0x01020304050607080910111213141516, buf.get_i128_le()); /// ``` -
/// let mut buf: &[u8] = match cfg!(target_endian = "big") { /// true => b"\x01\x02\x03\x04\x05\x06\x07\x08\x09\x10\x11\x12\x13\x14\x15\x16 hello", /// false => b"\x16\x15\x14\x13\x12\x11\x10\x09\x08\x07\x06\x05\x04\x03\x02\x01 hello", /// }; -
/// true => b"\x01\x02\x03\x04\x05\x06\x07\x08\x09\x10\x11\x12\x13\x14\x15\x16 hello", /// false => b"\x16\x15\x14\x13\x12\x11\x10\x09\x08\x07\x06\x05\x04\x03\x02\x01 hello", /// }; /// assert_eq!(0x01020304050607080910111213141516, buf.get_i128_ne()); -
/// /// let mut buf = &b"\x01\x02\x03\x04\x05\x06\x07\x08\x09\x10\x11\x12\x13\x14\x15\x16 hello"[..]; /// assert_eq!(Ok(0x01020304050607080910111213141516_u128), buf.try_get_u128()); /// assert_eq!(6, buf.remaining()); -
/// /// let mut buf = &b"\x16\x15\x14\x13\x12\x11\x10\x09\x08\x07\x06\x05\x04\x03\x02\x01 hello"[..]; /// assert_eq!(Ok(0x01020304050607080910111213141516_u128), buf.try_get_u128_le()); /// assert_eq!(6, buf.remaining()); -
/// let mut buf: &[u8] = match cfg!(target_endian = "big") { /// true => b"\x01\x02\x03\x04\x05\x06\x07\x08\x09\x10\x11\x12\x13\x14\x15\x16 hello", /// false => b"\x16\x15\x14\x13\x12\x11\x10\x09\x08\x07\x06\x05\x04\x03\x02\x01 hello", /// }; -
/// true => b"\x01\x02\x03\x04\x05\x06\x07\x08\x09\x10\x11\x12\x13\x14\x15\x16 hello", /// false => b"\x16\x15\x14\x13\x12\x11\x10\x09\x08\x07\x06\x05\x04\x03\x02\x01 hello", /// }; /// assert_eq!(Ok(0x01020304050607080910111213141516_u128), buf.try_get_u128_ne()); -
/// /// let mut buf = &b"\x01\x02\x03\x04\x05\x06\x07\x08\x09\x10\x11\x12\x13\x14\x15\x16 hello"[..]; /// assert_eq!(Ok(0x01020304050607080910111213141516_i128), buf.try_get_i128()); /// assert_eq!(6, buf.remaining()); -
/// /// let mut buf = &b"\x16\x15\x14\x13\x12\x11\x10\x09\x08\x07\x06\x05\x04\x03\x02\x01 hello"[..]; /// assert_eq!(Ok(0x01020304050607080910111213141516_i128), buf.try_get_i128_le()); /// assert_eq!(6, buf.remaining()); -
/// let mut buf: &[u8] = match cfg!(target_endian = "big") { /// true => b"\x01\x02\x03\x04\x05\x06\x07\x08\x09\x10\x11\x12\x13\x14\x15\x16 hello", /// false => b"\x16\x15\x14\x13\x12\x11\x10\x09\x08\x07\x06\x05\x04\x03\x02\x01 hello", /// }; -
/// true => b"\x01\x02\x03\x04\x05\x06\x07\x08\x09\x10\x11\x12\x13\x14\x15\x16 hello", /// false => b"\x16\x15\x14\x13\x12\x11\x10\x09\x08\x07\x06\x05\x04\x03\x02\x01 hello", /// }; /// assert_eq!(Ok(0x01020304050607080910111213141516_i128), buf.try_get_i128_ne()); -
/// buf.put_u128(0x01020304050607080910111213141516); /// assert_eq!(buf, b"\x01\x02\x03\x04\x05\x06\x07\x08\x09\x10\x11\x12\x13\x14\x15\x16"); /// ``` /// -
/// buf.put_u128_le(0x01020304050607080910111213141516); /// assert_eq!(buf, b"\x16\x15\x14\x13\x12\x11\x10\x09\x08\x07\x06\x05\x04\x03\x02\x01"); /// ``` /// -
/// if cfg!(target_endian = "big") { /// assert_eq!(buf, b"\x01\x02\x03\x04\x05\x06\x07\x08\x09\x10\x11\x12\x13\x14\x15\x16"); /// } else { /// assert_eq!(buf, b"\x16\x15\x14\x13\x12\x11\x10\x09\x08\x07\x06\x05\x04\x03\x02\x01"); -
/// } else { /// assert_eq!(buf, b"\x16\x15\x14\x13\x12\x11\x10\x09\x08\x07\x06\x05\x04\x03\x02\x01"); /// } /// ``` -
/// buf.put_i128(0x01020304050607080910111213141516); /// assert_eq!(buf, b"\x01\x02\x03\x04\x05\x06\x07\x08\x09\x10\x11\x12\x13\x14\x15\x16"); /// ``` /// -
/// buf.put_i128_le(0x01020304050607080910111213141516); /// assert_eq!(buf, b"\x16\x15\x14\x13\x12\x11\x10\x09\x08\x07\x06\x05\x04\x03\x02\x01"); /// ``` /// -
/// if cfg!(target_endian = "big") { /// assert_eq!(buf, b"\x01\x02\x03\x04\x05\x06\x07\x08\x09\x10\x11\x12\x13\x14\x15\x16"); /// } else { /// assert_eq!(buf, b"\x16\x15\x14\x13\x12\x11\x10\x09\x08\x07\x06\x05\x04\x03\x02\x01"); -
/// } else { /// assert_eq!(buf, b"\x16\x15\x14\x13\x12\x11\x10\x09\x08\x07\x06\x05\x04\x03\x02\x01"); /// } /// ``` -
// (testing Sign Extension for `Buf::get_int' and `Buf::get_int_ne`). const INPUT: & = b"\xffFqrjrDqPhvTc45vvq33f6bJrUtyHESuTeklWKgYd64xgzxJwvAkpYYnpNJyZSRn";likely benign A base64-looking byte-string literal used as test input for Buf integer sign-extension in a Rust test file.Reasoning
This is a raw-pass base64-like heuristic hit on a byte-string literal in a test file for the bytes crate's Buf::get_int sign-extension behaviour. The blob is an arbitrary test input with a leading \xff byte chosen to exercise sign extension, not a payload. No decode or execution path is visible, and raw findings carry a higher false-positive rate.
Reproduce This Scan
Run disclude locally to verify. These commands scan the published file; the "new in this release" marks come from comparing it with the previous release's file, which they don't repeat. Add --format sarif for SARIF output. Add --llm (with an API key in the environment) to include the LLM review.
|
&&