Dataset Viewer
The dataset viewer is not available because its heuristics could not detect any supported data files. You can try uploading some data files, or configuring the data files location manually.
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Apache ORC dictionary_size uint32_t Overflow → Heap Buffer Overflow WRITE
Vulnerability
DictionaryLoader.cc:67 performs dictSize + 1 as uint32_t arithmetic.
When dictionary_size = 0xFFFFFFFF (from protobuf ColumnEncoding), the
result wraps to 0, causing resize(0). The RLE decoder then writes past
the empty buffer at line 69 → heap-buffer-overflow WRITE.
Files
malicious_dictsize_overflow.orc— crafted ORC file (110 bytes)craft_malicious_orc.py— Python script to generate the malicious fileharness.cc— C++ harness for reproduction
Reproduction
git clone https://github.com/apache/orc.git && cd orc
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_C_FLAGS="-fsanitize=address -fno-omit-frame-pointer" \
-DCMAKE_CXX_FLAGS="-fsanitize=address -fno-omit-frame-pointer" \
-DCMAKE_EXE_LINKER_FLAGS="-fsanitize=address" \
-DBUILD_JAVA=OFF -DBUILD_CPP_TESTS=OFF -DBUILD_TOOLS=ON \
-DSTOP_BUILD_ON_WARNING=OFF
make -j$(nproc) orc-scan
./tools/src/orc-scan /path/to/malicious_dictsize_overflow.orc
Expected: ASAN heap-buffer-overflow WRITE at DictionaryLoader.cc:69
- Downloads last month
- 33