News for hackers. Stuff that matters.
Re:45 years since its creation. The C language still very po... by vardump on Tuesday May 24, 2016 @02:52PM (#11764457)
Any recommendations on static C analysis for embedded systems?
Re:45 years since its creation. The C language still very po... by TickleSteve on Tuesday May 24, 2016 @04:35PM (#11765244)
No one-tool does the whole job. Setup your CI system to use multiple tools (Lint, CLang-analyser, cppcheck, etc).

Dont trust just one.

Re:45 years since its creation. The C language still very po... by nickpsecurity on Wednesday May 25, 2016 @12:00PM (#11770726)
Have you tried Astree Analyzer? Papers I read indicated it was one of best but hard to find industry people to confirm or reject it. Want someone to clone it for FOSS. Meanwhile, I found these free ones for you two that have each found bugs in code with focus on minimal annotations. All are academic prototypes but Saturn was used on Linux kernel.

Saturn http://saturn.stanford.edu/pages/overviewindex.html

CSolve http://goto.ucsd.edu/csolve/

Calysto http://www.domagoj-babic.com/index.php/ResearchProjects/Caly...

Most academics are instead making compilers that translate C code into something mostly or totally safe while pushing the performance hit downward. Here's two of the top for you to try on various codes (or improve):

https://www.cs.rutgers.edu/~santosh.nagarakatte/softbound/

http://sva.cs.illinois.edu/downloads.html

Re:45 years since its creation. The C language still very po... by vardump on Tuesday May 24, 2016 @04:52PM (#11765366)
Pretty much what we already use.

I was hoping for something new.

Re:45 years since its creation. The C language still very po... by nickpsecurity on Wednesday May 25, 2016 @12:00PM (#11770734)
Here you go. Experiment away and give them constructive feedback as they need it. Esp Softbound and SAFECODE.

https://news.ycombinator.com/item?id=11770726

Re:45 years since its creation. The C language still very po... by vardump on Wednesday May 25, 2016 @02:48PM (#11772124)
Thanks!

I'll look into those.