[#7307] safer 'doc too large' checking, to account for ming's arg injection
4 files changed