r2.11 cherry-pick: 8ae76cf085f "[Tensorflow] Fix security vulnerability with DenseBincountOp"
Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/8ae76cf085f4be26295d2ecf2081e759e04b8acf