Backport "overflow" function

backport "overflow" function from yplatform::zerocopy. EML-11994