gnguralnick opened a new pull request, #475:
URL: https://github.com/apache/tvm-ffi/pull/475

   On 32-bit platforms (e.g. WASM), the intermediate multiplication `numel * 
dtype.bits * dtype.lanes` in `GetDataSize()` can overflow `size_t` for large 
tensors, even when the final byte count (after dividing by 8) fits within 32 
bits.
   
   This PR casts the intermediate computation to `uint64_t` to avoid the 
overflow, then casts the result back to `size_t`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to