diff options
Diffstat (limited to 'libcamera-rpi-0.3.2-arch.patch')
-rw-r--r-- | libcamera-rpi-0.3.2-arch.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libcamera-rpi-0.3.2-arch.patch b/libcamera-rpi-0.3.2-arch.patch new file mode 100644 index 0000000..108dc9d --- /dev/null +++ b/libcamera-rpi-0.3.2-arch.patch @@ -0,0 +1,11 @@ +--- libcamera-rpi-0.3.2/src/ipa/rpi/cam_helper/cam_helper_imx500.cpp 2024-10-20 21:38:58.492510656 +0200 ++++ libcamera-rpi-0.3.2-arch/src/ipa/rpi/cam_helper/cam_helper_imx500.cpp 2024-10-20 21:23:25.628222018 +0200 +@@ -257,7 +257,7 @@ + exported.height = inputTensorInfo.height; + exported.numChannels = inputTensorInfo.channels; + strncpy(exported.networkName, inputTensorInfo.networkName.c_str(), +- sizeof(exported.networkName)); ++ sizeof(exported.networkName) - 1); + exported.networkName[sizeof(exported.networkName) - 1] = '\0'; + metadata.set("cnn.input_tensor_info", exported); + metadata.set("cnn.input_tensor", std::move(inputTensorInfo.data)); |