tracking uninitialized static variables

后端 未结 5 506
孤街浪徒
孤街浪徒 2021-01-12 11:40

I need to debug an ugly and huge math C library, probably once produced by f2c. The code is abusing local static variables, and unfortunately somewhere it seems to

5条回答
  •  猫巷女王i
    2021-01-12 12:10

    Static code analysis tools are pretty good at finding typical programming errors like the use of uninitialized variables. Here is a list of free tools that do this for C.

    Unfortunately I can't recommend any of the tools in the list. I am only familiar with two commercial products, Coverity and Klocwork. Coverity is very good (and expensive). Klocwork is so so (but less expensive).

提交回复
热议问题