You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can anyone explain why a Unicode is expected to be put in the buffer there?
Nonetheless, 4*len+1 bytes are allocated in the code mentioned above, why are just 4*len bytes passed as the target buffer length to the function filling the aptr buffer there ?
When len is zero, it leads to allocating exactly one byte of the memory, but the buffer pointed by aptr will not be filled at all in the called function unicode_to_ansi_copy() if HAVE_ICONV is undefined or connection is not given, right? See: this loop has no iteration and this condition is false.
The text was updated successfully, but these errors were encountered:
Can anyone explain why a Unicode is expected to be put in the buffer there?
Nonetheless,
4*len+1
bytes are allocated in the code mentioned above, why are just4*len
bytes passed as the target buffer length to the function filling theaptr
buffer there ?When
len
is zero, it leads to allocating exactly one byte of the memory, but the buffer pointed byaptr
will not be filled at all in the called functionunicode_to_ansi_copy()
if HAVE_ICONV is undefined or connection is not given, right? See: this loop has no iteration and this condition is false.The text was updated successfully, but these errors were encountered: