RFR: 8319079: Missing range checks in decora [v2]
Jayathirth D V
jdv at openjdk.org
Tue Oct 31 05:55:57 UTC 2023
On Mon, 30 Oct 2023 15:16:45 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:
>> modules/javafx.graphics/src/main/native-decora/SSELinearConvolveShadowPeer.cc line 133:
>>
>>> 131: dstrows > srcrows) { // We should not move out of source vertical bounds
>>> 132: return;
>>> 133: }
>>
>> Instead of copy-pasting the same checks in all the missing places, isn't it better to create a check method (say in `SSEUtils`) and call if from all the places? Like in the style of `java.util.Objects::checkRange`.
>
> If the checks are identical, that could be a useful change.
Thanks for the inputs.
Apart from single check all others are identical, so i have added common utility function.
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/1272#discussion_r1377084907
More information about the openjfx-dev
mailing list