[all-commits] [llvm/llvm-project] ecd691: [flang][unittests] Fix recent snprintf() changes t...

Peter Klausler via All-commits all-commits at lists.llvm.org
Tue Jul 18 10:28:35 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ecd691750648b72b9e0ce6879fcfa60396693a77
      https://github.com/llvm/llvm-project/commit/ecd691750648b72b9e0ce6879fcfa60396693a77
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-07-18 (Tue, 18 Jul 2023)

  Changed paths:
    M flang/unittests/Decimal/quick-sanity-test.cpp
    M flang/unittests/Decimal/thorough-test.cpp

  Log Message:
  -----------
  [flang][unittests] Fix recent snprintf() changes to use correct buffer lengths

A recent patch replaced two sprintf() calls with snprintf(), but didn't
use the right length for the remaining space in the buffer.

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




More information about the All-commits mailing list