When parsing a name with a trailing '.', finish parsing at the '.' without additionally processing end of input. Fixes a write beyond the end of the resulting name, which can be unallocated memory for names of maximum length.
Add test cases for maximum length names and name overflow.
When parsing a name with a trailing '.', finish parsing at the '.' without additionally processing end of input. Fixes a write beyond the end of the resulting name, which can be unallocated memory for names of maximum length.
Add test cases for maximum length names and name overflow.