diff mbox series

[AUH] fmt: upgrading to 12.2.1 SUCCEEDED

Message ID 010101a1b99b9800-9a11f051-5bf2-4e12-b395-abdfb57f893a-000000@us-west-2.amazonses.com
State New
Headers show
Series [AUH] fmt: upgrading to 12.2.1 SUCCEEDED | expand

Commit Message

auh@yoctoproject.org Nov. 8, 2026, 5:22 a.m. UTC
Hello,

this email is a notification from the Auto Upgrade Helper
that the automatic attempt to upgrade the recipe(s) *fmt* to *12.2.1* has Succeeded.

Next steps:
    - apply the patch: git am 0001-fmt-upgrade-12.2.0-12.2.1.patch
    - check the changes to upstream patches and summarize them in the commit message,
    - compile an image that contains the package
    - perform some basic sanity tests
    - amend the patch and sign it off: git commit -s --reset-author --amend
    - send it to the appropriate mailing list

Alternatively, if you believe the recipe should not be upgraded at this time,
you can fill RECIPE_NO_UPDATE_REASON in respective recipe file so that
automatic upgrades would no longer be attempted.

Please review the attached files for further information and build/update failures.
Any problem please file a bug at https://bugzilla.yoctoproject.org/enter_bug.cgi?product=Automated%20Update%20Handler

Regards,
The Upgrade Helper

-- >8 --
From c979c664bd8d03c5fe0d6ddd14a2f8b6e43b3e78 Mon Sep 17 00:00:00 2001
From: Upgrade Helper <auh@yoctoproject.org>
Date: Sun, 8 Nov 2026 05:13:26 +0000
Subject: [PATCH] fmt: upgrade 12.2.0 -> 12.2.1

# 12.2.1 - 2026-11-07

- Fixed a heap buffer overflow on 32-bit targets when the size of a formatting
  buffer overflows, e.g. `fmt::format(L"{:>{}}", s, 1100000000)`. Such
  allocations now throw `std::bad_alloc`.

- Fixed an out-of-bounds read when parsing format specifiers of
  `std::error_code` ( ).
  Thanks @IfkumRfnl.

- Fixed a crash when formatting `nullptr` with `FMT_COMPILE` and an exception
  in `fmt::to_string(nullptr)`; both now format it as `0x0`
  ( ). Thanks @INo-xious.
---
 .../0001-Fix-fallback-uint128-bitwise-not-4813.patch   | 10 +++++-----
 .../fmt/0001-Workaround-an-ABI-issue-in-spdlog.patch   |  8 ++++----
 .../fmt/{fmt_12.2.0.bb => fmt_12.2.1.bb}               |  4 ++--
 3 files changed, 11 insertions(+), 11 deletions(-)
 rename meta/recipes-devtools/fmt/{fmt_12.2.0.bb => fmt_12.2.1.bb} (88%)
diff mbox series

Patch

diff --git a/meta/recipes-devtools/fmt/fmt/0001-Fix-fallback-uint128-bitwise-not-4813.patch b/meta/recipes-devtools/fmt/fmt/0001-Fix-fallback-uint128-bitwise-not-4813.patch
index ef5c6e9f82..e07e89b39b 100644
--- a/meta/recipes-devtools/fmt/fmt/0001-Fix-fallback-uint128-bitwise-not-4813.patch
+++ b/meta/recipes-devtools/fmt/fmt/0001-Fix-fallback-uint128-bitwise-not-4813.patch
@@ -1,4 +1,4 @@ 
-From d838c8c7923730afb751350ecac2b169256f1445 Mon Sep 17 00:00:00 2001
+From ae7e9eb7f0c17735d577d1a7dea4f2ce78b46700 Mon Sep 17 00:00:00 2001
 From: Vinay Kumar <vkslog69@gmail.com>
 Date: Thu, 18 Jun 2026 12:22:12 +0530
 Subject: [PATCH] Fix fallback uint128 bitwise not (#4813)
@@ -11,10 +11,10 @@  Signed-off-by: Alexander Kanavin <alex@linutronix.de>
  2 files changed, 8 insertions(+)
 
 diff --git a/include/fmt/format.h b/include/fmt/format.h
-index f33c8b87..ca95f6df 100644
+index 36f483a4..07b99ca9 100644
 --- a/include/fmt/format.h
 +++ b/include/fmt/format.h
-@@ -326,6 +326,9 @@ class uint128 {
+@@ -327,6 +327,9 @@ class uint128 {
        -> uint128 {
      return {lhs.hi_ & rhs.hi_, lhs.lo_ & rhs.lo_};
    }
@@ -25,10 +25,10 @@  index f33c8b87..ca95f6df 100644
        -> uint128 {
      auto result = uint128(lhs);
 diff --git a/test/format-test.cc b/test/format-test.cc
-index 61a53c72..7e48b751 100644
+index 3de178a0..d2ef0144 100644
 --- a/test/format-test.cc
 +++ b/test/format-test.cc
-@@ -81,6 +81,11 @@ TEST(uint128_test, minus) {
+@@ -82,6 +82,11 @@ TEST(uint128_test, minus) {
    EXPECT_EQ(n - 2, 40);
  }
  
diff --git a/meta/recipes-devtools/fmt/fmt/0001-Workaround-an-ABI-issue-in-spdlog.patch b/meta/recipes-devtools/fmt/fmt/0001-Workaround-an-ABI-issue-in-spdlog.patch
index afae644d49..f2df082a48 100644
--- a/meta/recipes-devtools/fmt/fmt/0001-Workaround-an-ABI-issue-in-spdlog.patch
+++ b/meta/recipes-devtools/fmt/fmt/0001-Workaround-an-ABI-issue-in-spdlog.patch
@@ -1,4 +1,4 @@ 
-From 6ee6b54766c50ae8df9478efd91075543e89f66e Mon Sep 17 00:00:00 2001
+From 96adf3e174ad93daa2833e9a924e195a70392b6a Mon Sep 17 00:00:00 2001
 From: Victor Zverovich <viz@meta.com>
 Date: Sat, 22 Mar 2025 06:57:04 -0700
 Subject: [PATCH] Workaround an ABI issue in spdlog
@@ -10,10 +10,10 @@  Signed-off-by: Khem Raj <raj.khem@gmail.com>
  1 file changed, 4 insertions(+), 2 deletions(-)
 
 diff --git a/include/fmt/format.h b/include/fmt/format.h
-index 5044befd..f33c8b87 100644
+index 672a8ddf..36f483a4 100644
 --- a/include/fmt/format.h
 +++ b/include/fmt/format.h
-@@ -774,7 +774,9 @@ enum { inline_buffer_size = 500 };
+@@ -775,7 +775,9 @@ enum { inline_buffer_size = 500 };
   * converted to `std::string` with `to_string(out)`.
   */
  template <typename T, size_t SIZE = inline_buffer_size,
@@ -24,7 +24,7 @@  index 5044befd..f33c8b87 100644
  class basic_memory_buffer : public detail::buffer<T> {
   private:
    T store_[SIZE];
-@@ -2769,7 +2771,7 @@ class bigint {
+@@ -2770,7 +2772,7 @@ class bigint {
    }
  
   public:
diff --git a/meta/recipes-devtools/fmt/fmt_12.2.0.bb b/meta/recipes-devtools/fmt/fmt_12.2.1.bb
similarity index 88%
rename from meta/recipes-devtools/fmt/fmt_12.2.0.bb
rename to meta/recipes-devtools/fmt/fmt_12.2.1.bb
index d68684e4f6..0f3eeec20e 100644
--- a/meta/recipes-devtools/fmt/fmt_12.2.0.bb
+++ b/meta/recipes-devtools/fmt/fmt_12.2.1.bb
@@ -5,12 +5,12 @@  LICENSE = "MIT WITH fmt-exception"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=6ec080902ed8f82f5a97ed13e8042634 \
                     file://doc/LICENSE-exception;md5=b9257785fc4f3803a4b71b76c1412729"
 
-SRC_URI = "git://github.com/fmtlib/fmt;branch=main;protocol=https;tag=${PV} \
+SRC_URI = "git://github.com/fmtlib/fmt;branch=12.x;protocol=https;tag=${PV} \
            file://0001-Workaround-an-ABI-issue-in-spdlog.patch \
            file://run-ptest \
            file://0001-Fix-fallback-uint128-bitwise-not-4813.patch \
            "
-SRCREV = "1be298e1bd68957e4cd352e1f676f00e07dcfb57"
+SRCREV = "208219daff58f2a7438f6931cc2ddc358acf33ef"
 
 inherit cmake ptest