|
if (fseek(fp, block * BLCKSZ, SEEK_SET) != 0) |
I found potential vulnerability on line 96. optarg can contain an arbitrary number of characters, and block is not checked after reading, so undefined behavior may occur after the block*BLCKSZ expression.
PolarDB-for-PostgreSQL/src/bin/polar_tools/block_header_dump.c
Line 96 in accf02e
I found potential vulnerability on line 96. optarg can contain an arbitrary number of characters, and block is not checked after reading, so undefined behavior may occur after the block*BLCKSZ expression.