
<         payload_size = smh->submessageLength -
---
>         payload_size = smh->submessageLength - ...;
>         if (payload_size > MAX_PAYLOAD_SIZE || payload_size < 0) {
>             // handle error or invalid payload size
>         }
