MSVC的“安全” sprintf 功能有一个“知道”目标缓冲区大小的模板版本。然而,这段代码在 bytes 结束后愉快地在堆栈中绘制了567890 ... char bytes[5]; _snprintf_s( bytes ...
確定! 回上一頁