Secure C++ coding practices

后端 未结 6 2097
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-04 11:05

I am looking for a comprehensive record of secure coding practices in C++. Since i haven\'t found such a list existing here already we might as well make this into a community w

6条回答
  •  北恋
    北恋 (楼主)
    2021-02-04 11:47

    Let me kick it off

    • Avoid dynamically allocated memory using malloc
    • (related) use fixed size array when ever possible, or infact in C++ avoid C style arrays when practical
    • avoid the use of (void *)

提交回复
热议问题