-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
Out of bounds access at compile time:
In file included from /root/project/include/dynd/callables/state_callable.hpp:9,
from /root/project/src/dynd/functional.cpp:15:
/root/project/include/dynd/kernels/state_kernel.hpp: In static member function 'static void dynd::nd::base_kernel<PrefixType, SelfType>::call_wrapper(dynd::nd::kernel_prefix*, dynd::nd::array*, const dynd::nd::array*) [with PrefixType = dynd::nd::kernel_prefix; SelfType = dynd::nd::state_kernel<1>]':
/root/project/include/dynd/kernels/state_kernel.hpp:29:22: error: array subscript 1 is outside array bounds of 'char* [1]' [-Werror=array-bounds]
29 | child_src[j] = src[j];
In file included from /root/project/include/dynd/kernels/apply_callable_kernel.hpp:9,
from /root/project/include/dynd/kernels/apply.hpp:146,
from /root/project/include/dynd/callables/base_apply_callable.hpp:9,
from /root/project/include/dynd/callables/apply_callable_callable.hpp:8,
from /root/project/include/dynd/callable.hpp:11,
from /root/project/include/dynd/types/adapt_type.hpp:8,
from /root/project/include/dynd/kernels/adapt_kernel.hpp:9,
from /root/project/include/dynd/callables/adapt_callable.hpp:9,
from /root/project/src/dynd/functional.cpp:6:
/root/project/include/dynd/kernels/base_strided_kernel.hpp:48:13: note: while referencing 'src_data'
48 | char *src_data[N];
| ^~~~~~~~
Metadata
Metadata
Assignees
Labels
No labels