nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1From f17afb6b3782445d7484a1f2e07e1d47f1773d3c Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Hubert=20Figui=C3=A8re?= <hub@figuiere.net>
3Date: Thu, 1 Jan 2026 16:02:30 +0100
4Subject: [PATCH] Fix a crash on an OOB container access
5
6Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
7---
8 src/Controller/Src/Finder/Finder.cpp | 3 +++
9 1 file changed, 3 insertions(+)
10
11diff --git a/src/Controller/Src/Finder/Finder.cpp b/src/Controller/Src/Finder/Finder.cpp
12index aa6b853..5e063e8 100755
13--- a/src/Controller/Src/Finder/Finder.cpp
14+++ b/src/Controller/Src/Finder/Finder.cpp
15@@ -52,6 +52,9 @@ namespace epsonscan {
16 }
17 SDIDeviceInfo* Finder::GetDevicesPointer()
18 {
19+ if (devices_.size() == 0) {
20+ return nullptr;
21+ }
22 return &devices_[0];
23 }
24 int32_t Finder::GetDevicesCount() const
25--
262.51.2
27