Open gaikwadrahul8 opened 1 day ago
This issue originally reported by @SiriusHsh has been moved to this dedicated repository for LiteRT to enhance issue tracking and prioritization. To ensure continuity, we have created this new issue on your behalf.
We appreciate your understanding and look forward to your continued involvement.
Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
Yes
Source
source
TensorFlow version
tf 2.14.0
Custom code
Yes
OS platform and distribution
Ubuntu 18.04.6
Mobile device
No response
Python version
Python 3.8.3
Bazel version
bazel 5.3.0
GCC/compiler version
gcc 7.5.0
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
Construct a malicious model for the DepthwiseConv2D operator, setting the
stride_width
to greater than0xffff
. When initializing the DepthwiseParams structure in depthwise_conv.cc, due to precision loss,op_params.stride_width
becomes 0.TfLiteDepthwiseConvParams::stride_width
is a 4-byte int type, whileDepthwiseParams::stride_width
is a 2-byte int type.The
stride
variable may be equal to 0, leading to a division by zero error.DepthwiseConv2D_FPE.zip
Standalone code to reproduce the issue
Relevant log output
No response