[Lldb-commits] [PATCH] D13903: [RenderScript] New commands to save/load RS allocations to file.

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Wed Oct 21 03:21:36 PDT 2015


labath added a subscriber: labath.
labath added a comment.

Hi,

you seem to have an out-of-bounds access here:

/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp:1629:5:
warning: array index 3 is past the end of the array (which contains 3
elements) [-Warray-bounds]

  head.dims[3] = static_cast<uint32_t>(alloc->dimension.get()->dim_3);
  ^         ~

/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp:190:9:
note: array 'dims' declared here

  uint32_t dims[3];      // Dimensions


Repository:
  rL LLVM

http://reviews.llvm.org/D13903





More information about the lldb-commits mailing list