forked from mirrors/qmk_userspace
[Core] guard RPC invocation by checking RPC info against crc checksum (#17840)
This commit is contained in:
parent
cac7042414
commit
ed9bdcbc36
2 changed files with 18 additions and 9 deletions
|
@ -116,9 +116,12 @@ typedef struct _split_slave_pointing_sync_t {
|
|||
|
||||
#if defined(SPLIT_TRANSACTION_IDS_KB) || defined(SPLIT_TRANSACTION_IDS_USER)
|
||||
typedef struct _rpc_sync_info_t {
|
||||
int8_t transaction_id;
|
||||
uint8_t m2s_length;
|
||||
uint8_t s2m_length;
|
||||
uint8_t checksum;
|
||||
struct {
|
||||
int8_t transaction_id;
|
||||
uint8_t m2s_length;
|
||||
uint8_t s2m_length;
|
||||
} payload;
|
||||
} rpc_sync_info_t;
|
||||
#endif // defined(SPLIT_TRANSACTION_IDS_KB) || defined(SPLIT_TRANSACTION_IDS_USER)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue