tensorflow/CVE-2021-37690-3.patch

26 lines
1.0 KiB
Diff
Raw Normal View History

2021-09-16 14:16:48 +08:00
From 106316a9077cfabca5d54721650c9a65fef4dc6a Mon Sep 17 00:00:00 2001
From: Mihai Maruseac <mihaimaruseac@google.com>
Date: Sat, 7 Aug 2021 17:18:11 -0700
Subject: [PATCH 1/1] Fix build
---
tensorflow/core/common_runtime/shape_refiner.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tensorflow/core/common_runtime/shape_refiner.cc b/tensorflow/core/common_runtime/shape_refiner.cc
index 906bd14f96c..3c5421a9507 100644
--- a/tensorflow/core/common_runtime/shape_refiner.cc
+++ b/tensorflow/core/common_runtime/shape_refiner.cc
@@ -132,7 +132,7 @@ Status InferShapesForFunctionSubNode(const Node* node, ShapeRefiner* refiner,
TF_RETURN_IF_ERROR(
outer_context->MakeShapeFromShapeProto(proto, &handle));
copied_shapes_and_types.push_back(
- ShapeAndType(handle, shape_and_type.dtype, shape_and_type.specialized_type));
+ ShapeAndType(handle, shape_and_type.dtype));
}
outer_context->set_output_handle_shapes_and_types(
--
2.27.0