Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
Code - Bug - Unclear Impact
-
Low
-
Low Hanging Fruit
-
Code Inspection
-
All
-
None
-
Description
DatabaseDescriptor has several functions that convert between user supplied sizes in KB/MB and bytes. These are implemented without much consistency and, while unlikely, several have the potential to overflow since validation on the input is missing. Meanwhile, some widen the number to a long correctly. Options include: widening in all places or simply doing better validation on start up — currently only the lower bound of the valid range is checked for many of these fields.
List of Affected DatabaseDescriptor Methods:
- getColumnIndexSize
- getColumnIndexCacheSize
- getBatchSizeWarnThreshold
- getNativeTransportFrameBlockSize
- getRepairSessionSpaceInMegabytes
- getNativeTransportMaxFrameSize
Attachments
Issue Links
- links to
- mentioned in
-
Page Loading...