userInfoCStringcould be a non-null terminated string, and thenstrdupis called in the code and it sometimes crashes with theHeap buffer overflowerror. I wrote a unit test. Before the fix, ~2% of 10,000 runs failed. After the fix, there were no failures....