[all-commits] [llvm/llvm-project] 56f967: [Object] Prevent null pointer dereference in BigAr...

Victor Campos via All-commits all-commits at lists.llvm.org
Fri Oct 28 05:15:09 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 56f967db51fb3ba025bc00e7c3513549cf909da7
      https://github.com/llvm/llvm-project/commit/56f967db51fb3ba025bc00e7c3513549cf909da7
  Author: Victor Campos <victor.campos at arm.com>
  Date:   2022-10-28 (Fri, 28 Oct 2022)

  Changed paths:
    M llvm/lib/Object/Archive.cpp

  Log Message:
  -----------
  [Object] Prevent null pointer dereference in BigArchiveMemberHeader

The pointer argument Err from BigArchiveMemberHeader's constructor can
be null. This pointer was dereferenced without any null checks.

This patch adds a check to avoid a null dereference.

Reviewed By: brenoguim

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




More information about the All-commits mailing list