Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[tfg] Fix out-of-bounds access due to mismatched integer type sizes i…
…n ValueMap::Manager::GetValueOrCreatePlaceholder PiperOrigin-RevId: 497419488
- Loading branch information
1 parent
69c9be3
commit 760322a
Showing
2 changed files
with
72 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
...re/ir/importexport/tests/graphdef_to_mlir/invalid_generic_function_named_edge_index.pbtxt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| # RUN: not tfg-translate -graphdef-to-mlir %s 2>&1 | FileCheck %s | ||
|
|
||
| # CHECK: Output index 18446744073709551615 is invalid (too large) | ||
|
|
||
| library { | ||
| function { | ||
| signature { | ||
| name: "foo" | ||
| attr { | ||
| name: "T" | ||
| type: "type" | ||
| } | ||
| } | ||
| node_def { | ||
| name: "two" | ||
| op: "Const" | ||
| attr { | ||
| key: "dtype" | ||
| value { | ||
| type: DT_INT64 | ||
| } | ||
| } | ||
| attr { | ||
| key: "value" | ||
| value { | ||
| tensor { | ||
| dtype: DT_INT64 | ||
| tensor_shape {} | ||
| int64_val: 2 | ||
| } | ||
| } | ||
| } | ||
| } | ||
| node_def { | ||
| name: "a" | ||
| op: "Cast" | ||
| input: "two:output:18446744073709551615" | ||
| attr { | ||
| key: "DstT" | ||
| value { | ||
| placeholder: "T" | ||
| } | ||
| } | ||
| attr { | ||
| key: "SrcT" | ||
| value { | ||
| type: DT_INT64 | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |