[sr-dev] git:master:5a0e1c96: permissions: safety check of src len before copying to dst buffer