Fix tensor stridedlinearbuffercopy

Reference issue

Fixes #2706 (closed)

What does this implement/fix?

Avoid negative indices when calculating loop bounds by using division and multiplication (of sizes that are compile-time powers of two). Unsigned integers wrap around instead of going negative, which is defined behavior and probably why no compiler warnings were emitted. Good catch @rsimsek71!

Additional information

Merge request reports

Loading