git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git and the Clang Static Analyzer

From
ДПДилян Палаузов <dilyan.palauzov@aegee.org>
Date
May 7, 2017, 11:50 UTC
Message-ID
<5696a8a3-0a17-18ac-8da4-4556586acee7@aegee.org>
Hello,
I compiled git/master using the clang 4.0 static analyzer with

scan-build ./configure --with-libpcre --with-openssl scan-build make

and here are the results:
   https://mail.aegee.org/dpa/scan-build-git-4fa66c85f11/

Please note, that the information is only about what gets actually compiled, code disabled by #if .. #endif is not considered (e.g. when determining whether a variable assignment is useless). There are probably false-positives. However in case of e.g. builtin/notes.c:1018, builtin/reset.c:294 or fast-import.c:2057 I consider the hints as justified.

This is for your information, I wouldn't have a problem if you ignore the analysis. When you are worried about javascript, use lynx.

Regards
   Дилян
Next: Johannes Schindelin
Message 1 of 5 in “git and the Clang Static Analyzer”
  1. Дилян ПалаузовMay 7, 2017
  2. Johannes SchindelinMay 8, 2017
  3. Lars SchneiderMay 8, 2017
  4. Дилян ПалаузовMay 8, 2017
  5. Jeff KingMay 8, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.