Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 269c0ee6 authored by Roel Kluin's avatar Roel Kluin Committed by David Woodhouse
Browse files

slram: Read buffer overflow



map[count] is checked before count < SLRAM_MAX_DEVICES_PARAMS

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent ad4fbc79
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -341,7 +341,7 @@ static int init_slram(void)
#else
	int count;

	for (count = 0; (map[count]) && (count < SLRAM_MAX_DEVICES_PARAMS);
	for (count = 0; count < SLRAM_MAX_DEVICES_PARAMS && map[count];
			count++) {
	}