On Fri, 28 Nov 2025 22:02:09 GMT, Damon Nguyen <[email protected]> wrote:

> There is a possible overflow when using `mlib_alloc()`. For example, 
> `mlib_alloc(sizeof(mlib_s32) * (m * n))` may overflow if m and n are greater 
> than 46430, since this would be greater than the max value for a signed 32 
> bit integer. I have added `SAFE_TO_ADD` and `SAFE_TO_MULT` in an attempt to 
> amend this issue. CI testing shows all green.

This pull request has been closed without being integrated.

-------------

PR: https://git.openjdk.org/jdk/pull/28560

Reply via email to