[all-commits] [llvm/llvm-project] f450dd: [analyzer] CStringChecker: Fix a crash on unknown ...

NoQ via All-commits all-commits at lists.llvm.org
Fri Dec 13 18:00:31 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f450dd63a14d6cb16418f6a6f4de26916502c13f
      https://github.com/llvm/llvm-project/commit/f450dd63a14d6cb16418f6a6f4de26916502c13f
  Author: Artem Dergachev <artem.dergachev at gmail.com>
  Date:   2019-12-13 (Fri, 13 Dec 2019)

  Changed paths:
    M clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp
    M clang/test/Analysis/bsd-string.c

  Log Message:
  -----------
  [analyzer] CStringChecker: Fix a crash on unknown value passed to strlcat.

Checkers should always account for unknown values.

Also use a slightly more high-level API that naturally avoids the problem.




More information about the All-commits mailing list