Merge "Fail explicitly on length overflow." into qt-qpr1-dev