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
ibaned
added
Enhancement
Improve existing capability; will potentially require voting
and removed
Bug
Broken / incorrect code; it could be Kokkos' responsibility, or others’ (e.g., Trilinos)
labels
Jul 25, 2017
My guess is no one calls this with an array shorter than the max right now, so I'll relabel this an enhancement to allow the function to work with smaller arrays. If you know of a case where code inside Kokkos or Trilinos calls it with a shorter array, then its back to being a bug.
ibaned
changed the title
Buffer Overflow in Kokkos_Layout.hpp
Out-of-bounds read in Kokkos_Layout.hpp
Jul 25, 2017
While nobody might be calling it, it is technically allowed so this is a bug (with maybe zero impact right now). Though I actually believe I do use it in LAMMPS with less than that. Most likely I am just lucky that the rest of the cache line is zeroed out.
Moving this from trilinos/Trilinos#1516 for @CamelliaDPG.
He wrote the following:
The
order_dimensions()
method implemented inKokkos_Layout.hpp
is as follows:Whenever
rank != ARRAY_LAYOUT_MAX_RANK
, that first for loop will read beyond the end of theorder
array. Proposed fix is as follows:The text was updated successfully, but these errors were encountered: