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