[sr-dev] git:master:4c709004: core: fix out of bounds write, related to commits 776d0d6bb1086 and dc2acb895538