[Core] guard RPC invocation by checking RPC info against crc checksum (#17840)

This commit is contained in:
Stefan Kerkmann 2022-08-06 10:46:59 +02:00 committed by GitHub
parent cac7042414
commit ed9bdcbc36
Failed to generate hash of commit
2 changed files with 18 additions and 9 deletions

View file

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