Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
[MXNET-953] Fix oob memory read
Browse files Browse the repository at this point in the history
  • Loading branch information
KellenSunderland committed Sep 21, 2018
1 parent 1045140 commit 3e7ad44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operator/tensor/elemwise_unary_op_basic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ void SizeComputeCPU(const nnvm::NodeAttrs& attrs,
CHECK_EQ(req.size(), 1U);
const TBlob& in_data = inputs[0];
const TBlob& out_data = outputs[0];
const index_t size_var = in_data.Size();
const int64_t size_var = in_data.Size();
memcpy(out_data.dptr_, &size_var, 1U * sizeof(int64_t));
}

Expand Down

0 comments on commit 3e7ad44

Please sign in to comment.