Skip to content
Permalink
Browse files Browse the repository at this point in the history
Fix heap OOB read/write due to incorrect indexing.
PiperOrigin-RevId: 408578046
Change-Id: Ifc9ffea49e5890f55fcb2c27568611052c3ddcfa
  • Loading branch information
mihaimaruseac authored and tensorflower-gardener committed Nov 9, 2021
1 parent 6e65b0b commit 0657c83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorflow/core/framework/full_type_util.cc
Expand Up @@ -100,7 +100,7 @@ StatusOr<FullTypeDef> SpecializeType(const AttrSlice& attrs,
// verifications are needed, they should be done by separately, and in a
// way that can be reused for type inference.
for (int j = 0; j < t->args_size(); j++) {
auto* arg = t->mutable_args(i);
auto* arg = t->mutable_args(j);
if (arg->type_id() == TFT_VAR) {
const auto* attr = attrs.Find(arg->s());
if (attr == nullptr) {
Expand Down

0 comments on commit 0657c83

Please sign in to comment.