diff options
author | Tércio Martins | 2023-10-20 03:08:49 -0300 |
---|---|---|
committer | Tércio Martins | 2023-10-20 03:08:49 -0300 |
commit | 06ce1f3162785db5f50e6bad170e614f22412689 (patch) | |
tree | 5eb300a636cc686a2b2abbd642db0d5117039eff /epsonscan2-oob-container.patch | |
parent | 5ded3053bf89bc78a235163c2ad824c00bc29ab7 (diff) | |
download | aur-epsonscan2.tar.gz |
Update to verson 6.7.63.0 and include patches from Flatpak developers
Diffstat (limited to 'epsonscan2-oob-container.patch')
-rw-r--r-- | epsonscan2-oob-container.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/epsonscan2-oob-container.patch b/epsonscan2-oob-container.patch new file mode 100644 index 000000000000..f805363ea4d5 --- /dev/null +++ b/epsonscan2-oob-container.patch @@ -0,0 +1,20 @@ +commit 7e42ca6214a7f3b177b250a8e93b1230f1190f42 +Author: Hubert Figuière <hub@figuiere.net> +Date: Fri Oct 28 11:38:24 2022 -0400 + + Fix out of bound access on empty container + +diff --git a/src/Controller/Src/Finder/Finder.cpp b/src/Controller/Src/Finder/Finder.cpp +index 8e24f2f..13039cf 100644 +--- a/src/Controller/Src/Finder/Finder.cpp ++++ b/src/Controller/Src/Finder/Finder.cpp +@@ -38,6 +38,9 @@ namespace epsonscan { + } + SDIDeviceInfo* Finder::GetDevicesPointer() + { ++ if (devices_.size() == 0) { ++ return nullptr; ++ } + return &devices_[0]; + } + |