Caffe Integer Truncation PoCs
PoC files for integer truncation โ heap buffer overflow in Caffe's Blob handling.
Files
int_truncation.caffemodelโ BlobShape.dim=0x100000001 truncates to 1, heap overflow in FromProtohuge_dims.prototxtโ Dimensions near INT32_MAX cause integer overflow in allocation
Reproduce
git clone https://github.com/BVLC/caffe && cd caffe
# Build with ASan
mkdir build && cd build
cmake .. -DCMAKE_C_FLAGS="-fsanitize=address" -DCMAKE_CXX_FLAGS="-fsanitize=address"
make -j4
# Test
./build/tools/caffe test -model huge_dims.prototxt -weights int_truncation.caffemodel
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support