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

RotateRight via All-commits all-commits at lists.llvm.org
Sat Jul 31 12:18:24 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7f5555776513f174729a686ed01270e23462aaf7
      https://github.com/llvm/llvm-project/commit/7f5555776513f174729a686ed01270e23462aaf7
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-07-31 (Sat, 31 Jul 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




More information about the All-commits mailing list