本文围绕 CodeQL 仓库中 cpp/unsafe-strncat("Potentially unsafe call to strncat")查询展开,讲解该查询如何识别 strncat 调用中因 size 参数计算错误而导致的缓冲区溢出风险。你将掌握 strncat 的典型误用模式 ...