- const char *data_end = value_ptr+array_size*get_type_size(info.type);
- copy(value_ptr, data_end, store_ptr);
+ size_t value_size = array_size*get_type_size(info.type);
+ check_store_range(store_offset, value_size);
+ copy(value_ptr, value_ptr+value_size, store_ptr);