Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
gcc 4.4.4, 64 bit Linux (with -Werror and -Wconversion compile flags)
Description
The first line in this method sets the size based on the string length, which is of size_t type. On a 64-bit platform, the cast from a 64 bit unsigned integer to a 32 bit unsigned integer can result in incomplete data being written.
With my compiler flags (-Werror and -Wconversion), I can't compile my code that includes the client library headers.