File torchvision-use-safe-size_t-stride.patch of Package python-torchvision-stable
diff --git a/torchvision/csrc/io/image/cpu/decode_heic.cpp b/torchvision/csrc/io/image/cpu/decode_heic.cpp
index e245c25..e1d627c 100644
--- a/torchvision/csrc/io/image/cpu/decode_heic.cpp
+++ b/torchvision/csrc/io/image/cpu/decode_heic.cpp
@@ -27,7 +27,7 @@ torch::Tensor decode_heic(
int height = 0;
int width = 0;
int num_channels = 0;
- int stride = 0;
+ size_t stride = 0;
uint8_t* decoded_data = nullptr;
heif::Image img;
int bit_depth = 0;