Skip to content

fix FulgoraGraphComputer readBatchSize number overflow fault#1300

Open
amcp wants to merge 1 commit intothinkaurelius:titan11from
amcp:titan11-fulgora-read-batch-overflow
Open

fix FulgoraGraphComputer readBatchSize number overflow fault#1300
amcp wants to merge 1 commit intothinkaurelius:titan11from
amcp:titan11-fulgora-read-batch-overflow

Conversation

@amcp
Copy link

@amcp amcp commented Apr 7, 2016

@mbroecheler In FulgoraGraphComputer,
readBatchSize is fed into StandardScanner.Builder.setWorkBlockSize which throws for negative numbers. If readBatchSize is negative because of 10 * storage.buffer-size > Integer.MAX_VALUE, then the fault is triggered.
Instead, check writeBatchSize=storage.buffer-size in FulgoraGraphComputer constructor and throw if too large.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant