mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2026-09-10 21:06:51 +00:00
elan: Use safer check on linear frame processing
This commit is contained in:
committed by
Marco Trevisan
parent
0ca34709cd
commit
db316a59f4
@@ -251,7 +251,12 @@ elan_process_frame_linear (unsigned short *raw_frame,
|
||||
max = raw_frame[i];
|
||||
}
|
||||
|
||||
g_assert (max != min);
|
||||
if (max == min)
|
||||
{
|
||||
memset (frame->data, 0, frame_size);
|
||||
*frames = g_slist_prepend (*frames, frame);
|
||||
g_return_if_reached ();
|
||||
}
|
||||
|
||||
unsigned short px;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user