> Removed the additional multiplication overflow detection. > Instead cast all the parameters to type_t just the way they are treated in > the existing size check macro. > This way there is no possibility to accidentally provide parameters that will > pass the size check macro while being cast to size_t there but then due to > the missing cast cause the wrong size passed the actual allocation function. > Since this checking macro was used in couple of different places all of them > needs to be updated in the similar way.
Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: Fixed casting in SAFE_SIZE_NEW_ARRAY2 ------------- Changes: - all: https://git.openjdk.org/jdk/pull/11030/files - new: https://git.openjdk.org/jdk/pull/11030/files/ee223fc9..9673bac0 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=11030&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=11030&range=01-02 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/11030.diff Fetch: git fetch https://git.openjdk.org/jdk pull/11030/head:pull/11030 PR: https://git.openjdk.org/jdk/pull/11030
