我对那些sscanf糟糕的建议有着模糊的回忆.我知道如果我使用字段宽度说明符,它不会溢出缓冲区,所以我的记忆只是在玩弄技巧吗?
sscanf
c security scanf buffer-overflow
buffer-overflow ×1
c ×1
scanf ×1
security ×1