Hi,
code in mshadow/mshadow/tensor.h might cause UB.
Member function Shape<int>::operator[](int idx) does not check for array
boundaries.
GCC causes a warning (error with -Werror).
How to deal with it? Is it accepted to patch 3rdpart components?
A solution is to throw an exception (costs runtime performance), another is
to disable the warning for this specific code (then the user must check it).
Oliver

Reply via email to