mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2026-09-10 13:00:08 +00:00
mafpmoc: Do not pack templates structure
Otherwise undefined sanitizer would fail for unaligned memory access
This commit is contained in:
@@ -222,6 +222,7 @@ typedef struct _mafp_template
|
||||
uint16_t id;
|
||||
char uid[128];
|
||||
} mafp_template_t, *pmafp_template_t;
|
||||
#pragma pack(pop)
|
||||
|
||||
typedef struct _mafp_templates
|
||||
{
|
||||
@@ -232,7 +233,6 @@ typedef struct _mafp_templates
|
||||
mafp_template_t priv_list[MAX_FINGER_NUM];
|
||||
GPtrArray *list;
|
||||
} mafp_templates_t, *pmafp_templates_t;
|
||||
#pragma pack(pop)
|
||||
|
||||
typedef struct _fp_cmd_response
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user