PR#3320 safety check to ensure we dont send out beyond the users buffer