Community
Participate
Working Groups
Calls to ScriptItemize allocates huge buffers to accommodate for worst case ScriptItemize results all the time. The design of ScriptItemize is that a "typical" sized buffer is used, and if ScriptItemize returns E_OUTOFMEMORY then the buffer size is increased. At the moment the size of the buffer is the length of the string (+2) x sizeof SCRIPT_ITEM (which is 8 bytes).