bug 982774 - der::ExpectTagAndGetLength: check that input has enough capacity for the length described r=briansmith