Previously only the length of the label was allocated. As .net is initializing arrays with 0 and (at least for this stackalloc here) this happens in 4-byte chunks only strings with a length multiple of 4 were affected as in this case the allocated size exactly matched the length of the string and so no 0 was left to be used for string end. Now the array is generated always one byte larger than the label length, so there will always be a 0 at the end.internals
parent
0ce4c37f5d
commit
37e468dbe5
1 changed files with 4 additions and 4 deletions
Loading…
Reference in new issue