If a malicious sender sent a large notification, monitor_read would allocate memory for it and could run out of memory and crash the device
Give monitor_read a max buffer length so that the caller can provide monitor_read with a proper buffer length to hold the value that it is expecting from the receiver.
If a malicious sender sent a large notification, monitor_read would allocate memory for it and could run out of memory and crash the device
Give monitor_read a max buffer length so that the caller can provide monitor_read with a proper buffer length to hold the value that it is expecting from the receiver.