[all-commits] [llvm/llvm-project] 1be252: [libcxx] Check return value for asprintf()

brad0 via All-commits all-commits at lists.llvm.org
Thu Jan 21 16:43:37 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1be2524b7d213035e591bee3eecccdd6b59d14a5
      https://github.com/llvm/llvm-project/commit/1be2524b7d213035e591bee3eecccdd6b59d14a5
  Author: Brad Smith <brad at comstyle.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M libcxx/include/locale

  Log Message:
  -----------
  [libcxx] Check return value for asprintf()

local __libcpp_asprintf_l() -> libc asprintf() was inspecting the pointer (with
indeterminate value) for failure, rather than the return value of -1.

Reviewed By: ldionne

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




More information about the All-commits mailing list