[all-commits] [llvm/llvm-project] 41fe5c: [clang][analyzer] Improve StdLibraryFunctionsCheck...

Balázs Kéri via All-commits all-commits at lists.llvm.org
Tue Nov 14 01:58:19 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 41fe5c9a08f585a548ccf917804d67c79abcd3c3
      https://github.com/llvm/llvm-project/commit/41fe5c9a08f585a548ccf917804d67c79abcd3c3
  Author: Balázs Kéri <balazs.keri at ericsson.com>
  Date:   2023-11-14 (Tue, 14 Nov 2023)

  Changed paths:
    M clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
    M clang/test/Analysis/std-c-library-functions-POSIX.c
    M clang/test/Analysis/std-c-library-functions-path-notes.c

  Log Message:
  -----------
  [clang][analyzer] Improve StdLibraryFunctionsChecker 'readlink' modeling. (#71373)

The functions 'readlink' and 'readlinkat' do return 0 only if the
'bufsize' argument is 0.




More information about the All-commits mailing list