mafpmoc: Do not pack templates structure

Otherwise undefined sanitizer would fail for unaligned memory access
This commit is contained in:
Marco Trevisan (Treviño) 2025-02-13 04:46:38 +01:00
parent b3ad630fb4
commit 3ce345b876

View file

@ -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
{