[all-commits] [llvm/llvm-project] 851c24: [clang] Prevent possible use-after-free

kadir çetinkaya via All-commits all-commits at lists.llvm.org
Fri Aug 18 07:28:23 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 851c248dfcdbf52ee88e4643e59453fcc13501d5
      https://github.com/llvm/llvm-project/commit/851c248dfcdbf52ee88e4643e59453fcc13501d5
  Author: Kadir Cetinkaya <kadircet at google.com>
  Date:   2023-08-18 (Fri, 18 Aug 2023)

  Changed paths:
    M clang/lib/Parse/ParseObjc.cpp
    A clang/test/Parser/objc-delayed-method-use-after-free.m

  Log Message:
  -----------
  [clang] Prevent possible use-after-free

This prevents further parsing of tokens (that'll be freed) inside method
body by propagating EOF emitted by reaching code completion token up the parsing
stack.

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




More information about the All-commits mailing list