[sr-dev] git:4.2:bc4a545a: seas: safety check for target buffer size before copying message in encode_msg()