[odb-users] libodb-mssql wstring possible memory issue

Boris Kolpackov boris at codesynthesis.com
Fri Oct 26 14:48:39 EDT 2012


Hi Candy,

Candy Chiu <candy.chiu.ad at gmail.com> writes:

>         if (n > c)  // <------------- if (n * sizeof(ucs2_char) > c) ...

The buffer capacity (c) here is in 2-byte characters, not bytes.

Boris



More information about the odb-users mailing list