[all-commits] [llvm/llvm-project] ab0904: [clang] Fix crash when parsing scanf format string...

serge-sans-paille via All-commits all-commits at lists.llvm.org
Mon Sep 5 01:55:18 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ab09043a1985bfb9f1e4393a29a9d83326d306fe
      https://github.com/llvm/llvm-project/commit/ab09043a1985bfb9f1e4393a29a9d83326d306fe
  Author: serge-sans-paille <sguelton at redhat.com>
  Date:   2022-09-05 (Mon, 05 Sep 2022)

  Changed paths:
    M clang/lib/Sema/SemaChecking.cpp
    M clang/test/Sema/format-strings-scanf.c

  Log Message:
  -----------
  [clang] Fix crash when parsing scanf format string with missing arguments

When parsing a format string with less argument than specified, one should check
argument access because there may be no such argument.

This fixes #57517

Differential Revision: https://reviews.llvm.org/D133197




More information about the All-commits mailing list