mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2026-09-10 21:06:51 +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;
|
uint16_t id;
|
||||||
char uid[128];
|
char uid[128];
|
||||||
} mafp_template_t, *pmafp_template_t;
|
} mafp_template_t, *pmafp_template_t;
|
||||||
|
#pragma pack(pop)
|
||||||
|
|
||||||
typedef struct _mafp_templates
|
typedef struct _mafp_templates
|
||||||
{
|
{
|
||||||
@@ -232,7 +233,6 @@ typedef struct _mafp_templates
|
|||||||
mafp_template_t priv_list[MAX_FINGER_NUM];
|
mafp_template_t priv_list[MAX_FINGER_NUM];
|
||||||
GPtrArray *list;
|
GPtrArray *list;
|
||||||
} mafp_templates_t, *pmafp_templates_t;
|
} mafp_templates_t, *pmafp_templates_t;
|
||||||
#pragma pack(pop)
|
|
||||||
|
|
||||||
typedef struct _fp_cmd_response
|
typedef struct _fp_cmd_response
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user