You need to agree to share your contact information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

Tensorizer Huge Header Allocation DoS

This repository contains a small Tensorizer .tensors proof of concept.

The PoC file declares a very large per-tensor header length while only containing the first eight bytes of that header. TensorDeserializer.read_numpy_arrays() allocates bytearray(header_len) before checking that the declared header bytes exist in the file.

Run:

python build_and_verify.py

Expected result:

  • control_small_header.tensors returns quickly.
  • tensorizer_huge_header_allocation_dos.tensors is only 122 bytes but declares an 8 GiB tensor header and causes a large allocation / long delay before raising a parser error.
  • ModelScan reports no issues for the PoC file.
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support