[all-commits] [llvm/llvm-project] 66d022: [clang][analyzer] Fix incorrect range of 'ftell' i...

Ben Shi via All-commits all-commits at lists.llvm.org
Wed Jan 10 17:10:46 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 66d022f326779c8abe80b272751fab1a10992222
      https://github.com/llvm/llvm-project/commit/66d022f326779c8abe80b272751fab1a10992222
  Author: Ben Shi <2283975856 at qq.com>
  Date:   2024-01-11 (Thu, 11 Jan 2024)

  Changed paths:
    M clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp

  Log Message:
  -----------
  [clang][analyzer] Fix incorrect range of 'ftell' in the StdLibraryFunctionsChecker (#77576)

According to https://pubs.opengroup.org/onlinepubs/9699919799/, the
return value of `ftell` is not restricted to `> 0`, and may return `0`
in real world.




More information about the All-commits mailing list