You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It was added in 988f836. This ensures product fits into size_t, but matrix->datasize_ is of type int_fast32_t. For any architecture where sizeof(int_fast32_t) < sizeof(size_t), truncation may happen. Unclear if usigned -> signed conversion may be a problem even on architectures where sizeof(int_fast32_t) == sizeof(size_t). I assume jas_safe_intfast32_mul() and int_fast32_t size; can be used instead to address this problem.
The text was updated successfully, but these errors were encountered:
The
jas_matrix_create()
function has this check to avoid integer overflow:It was added in 988f836. This ensures product fits into
size_t
, butmatrix->datasize_
is of typeint_fast32_t
. For any architecture wheresizeof(int_fast32_t) < sizeof(size_t)
, truncation may happen. Unclear if usigned -> signed conversion may be a problem even on architectures wheresizeof(int_fast32_t) == sizeof(size_t)
. I assumejas_safe_intfast32_mul()
andint_fast32_t size;
can be used instead to address this problem.The text was updated successfully, but these errors were encountered: