[all-commits] [llvm/llvm-project] d6974c: [Analysis] improve function signature checking for...

RotateRight via All-commits all-commits at lists.llvm.org
Mon Aug 2 22:59:27 PDT 2021


  Branch: refs/heads/release/13.x
  Home:   https://github.com/llvm/llvm-project
  Commit: d6974c010878cae1df5b27067230ee5dcbc63342
      https://github.com/llvm/llvm-project/commit/d6974c010878cae1df5b27067230ee5dcbc63342
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-08-02 (Mon, 02 Aug 2021)

  Changed paths:
    M llvm/lib/Analysis/TargetLibraryInfo.cpp
    M llvm/test/Transforms/InstCombine/simplify-libcalls.ll

  Log Message:
  -----------
  [Analysis] improve function signature checking for snprintf

The check for size_t parameter 1 was already here for snprintf_chk,
but it wasn't applied to regular snprintf. This could lead to
mismatching and eventually crashing as shown in:
https://llvm.org/PR50885

(cherry picked from commit 7f5555776513f174729a686ed01270e23462aaf7)




More information about the All-commits mailing list