From 18eb3e6ef2b9104ccf3aa322bcfd53fc1a70c0f2 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Wed, 29 Jan 2025 15:16:13 +0100 Subject: [PATCH] Fixed stack overflow on serializing PHY. Signed-off-by: Pol Henarejos --- src/fs/phy.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/fs/phy.h b/src/fs/phy.h index 0bd7d91..c1ae914 100644 --- a/src/fs/phy.h +++ b/src/fs/phy.h @@ -55,9 +55,7 @@ typedef struct phy_data { bool usb_product_present; } phy_data_t; -#define PHY_OPT_MASK (PHY_UP_BTN | PHY_OPT_SECURE_LOCK | PHY_OPT_SECURE_BOOT | PHY_OPT_DIMM | PHY_OPT_WCID) - -#define PHY_MAX_SIZE 9 +#define PHY_MAX_SIZE 47 #ifndef ENABLE_EMULATION extern int phy_serialize_data(const phy_data_t *phy, uint8_t *data, uint16_t *len);