Permalink
Show file tree
Hide file tree
13 changes: 13 additions & 0 deletions
13
tensorflow/python/kernel_tests/image_ops/extract_image_patches_op_test.py
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
Fix pywrap attribute read security vulnerability.
If a list of quantized tensors is assigned to an attribute, the pywrap code was failing to parse the tensor and returning a `nullptr`, which wasn't caught. Here we check the return value and set an appropriate error status. PiperOrigin-RevId: 476981029
- Loading branch information
1 parent
e7ed22e
commit e9e9555
Showing
2 changed files
with
27 additions
and
5 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
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