Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package babl for openSUSE:Factory checked in 
at 2025-03-18 17:40:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/babl (Old)
 and      /work/SRC/openSUSE:Factory/.babl.new.19136 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "babl"

Tue Mar 18 17:40:11 2025 rev:67 rq:1253759 version:0.1.112

Changes:
--------
--- /work/SRC/openSUSE:Factory/babl/babl.changes        2024-11-07 
16:24:02.853311604 +0100
+++ /work/SRC/openSUSE:Factory/.babl.new.19136/babl.changes     2025-03-18 
17:41:40.690485357 +0100
@@ -1,0 +2,7 @@
+Mon Mar 17 11:31:38 UTC 2025 - Marcus Rueckert <mrueck...@suse.de>
+
+- Update to 0.1.112:
+  - Fix crash for locales using neither '.' nor ',' as decimal
+    seperator.
+
+-------------------------------------------------------------------

Old:
----
  babl-0.1.110.tar.xz

New:
----
  babl-0.1.112.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ babl.spec ++++++
--- /var/tmp/diff_new_pack.H7RMKI/_old  2025-03-18 17:41:41.286510276 +0100
+++ /var/tmp/diff_new_pack.H7RMKI/_new  2025-03-18 17:41:41.286510276 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package babl
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
 %define debug_package_requires libbabl-0_1-0 = %{version}-%{release}
 
 Name:           babl
-Version:        0.1.110
+Version:        0.1.112
 Release:        0
 Summary:        Dynamic Pixel Format Translation Library
 License:        GPL-3.0-or-later AND LGPL-3.0-or-later

++++++ babl-0.1.110.tar.xz -> babl-0.1.112.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/babl-0.1.110/NEWS new/babl-0.1.112/NEWS
--- old/babl-0.1.110/NEWS       2024-10-27 18:31:19.000000000 +0100
+++ new/babl-0.1.112/NEWS       2025-03-10 12:54:03.000000000 +0100
@@ -3,7 +3,11 @@
 the news section both in the README and the webpage.
                                                                           -->
 
-2024-09-xx babl-0.1.110                                             </dt><dd>
+2025-03-10 babl-0.1.112                                             </dt><dd>
+Fix crash for locales using neither '.' nor ',' as decimal seperator.
+Fix crash for locales using neither '.' nor ',' as decimal seperator.
+                                                                    </dd><dt>
+2024-09-27 babl-0.1.110                                             </dt><dd>
 Build improvements.
 Fixes to alpha componet in HCY, HSL, HSV and YCbCr models.
 Use same CIE Lab conversion for start/end as rest with SIMD.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/babl-0.1.110/babl/babl-core.c 
new/babl-0.1.112/babl/babl-core.c
--- old/babl-0.1.110/babl/babl-core.c   2024-10-27 18:31:19.000000000 +0100
+++ new/babl-0.1.112/babl/babl-core.c   2025-03-10 12:54:03.000000000 +0100
@@ -186,7 +186,6 @@
                        double f)
 {
   char name[128];
-  int i;
   float params[7]={g, a, b, c, d, e, f};
 
   if (fabs (g - 2.400) < 0.01 &&
@@ -199,9 +198,15 @@
       )
     return babl_trc ("sRGB");
 
-  snprintf (name, sizeof (name), "%.6f %.6f %.4f %.4f %.4f %.4f %.4f", g, a, 
b, c, d, e, f);
-  for (i = 0; name[i]; i++)
-    if (name[i] == ',') name[i] = '.';
+  snprintf (name, sizeof (name)-1, "%i.%06i  %i.%06i %i.%04i %i.%04i %i.%04i 
%i.%04i %i.%04i",
+            (int)(g), (int)((g-(int)g) * 1000000),
+            (int)(a), (int)((a-(int)a) * 1000000),
+            (int)(b), (int)((b-(int)b) * 10000),
+            (int)(c), (int)((c-(int)c) * 10000),
+            (int)(d), (int)((d-(int)d) * 10000),
+            (int)(e), (int)((e-(int)e) * 10000),
+            (int)(f), (int)((f-(int)f) * 10000));
+
   while (name[strlen(name)-1]=='0')
     name[strlen(name)-1]='\0';
   return babl_trc_new (name, BABL_TRC_FORMULA_SRGB, g, 0, params);
@@ -214,12 +219,14 @@
                       double c)
 {
   char name[128];
-  int i;
   float params[4]={g, a, b, c};
 
-  snprintf (name, sizeof (name), "%.6f %.6f %.4f %.4f", g, a, b, c);
-  for (i = 0; name[i]; i++)
-    if (name[i] == ',') name[i] = '.';
+  snprintf (name, sizeof (name)-1, "%i.%06i  %i.%06i %i.%04i %i.%04i",
+            (int)(g), (int)((g-(int)g) * 1000000),
+            (int)(a), (int)((a-(int)a) * 1000000),
+            (int)(b), (int)((b-(int)b) * 10000),
+            (int)(c), (int)((c-(int)c) * 10000));
+
   while (name[strlen(name)-1]=='0')
     name[strlen(name)-1]='\0';
   return babl_trc_new (name, BABL_TRC_FORMULA_CIE, g, 0, params);
@@ -230,13 +237,12 @@
 babl_trc_gamma (double gamma)
 {
   char name[32];
-  int i;
   if (fabs (gamma - 1.0) < 0.01)
      return babl_trc_new ("linear", BABL_TRC_LINEAR, 1.0, 0, NULL);
 
-  snprintf (name, sizeof (name), "%.6f", gamma);
-  for (i = 0; name[i]; i++)
-    if (name[i] == ',') name[i] = '.';
+  snprintf (name, sizeof (name)-1, "%i.%06i",
+            (int)(gamma), (int)((gamma-(int)gamma) * 1000000));
+
   while (name[strlen(name)-1]=='0')
     name[strlen(name)-1]='\0';
   return babl_trc_new (name, BABL_TRC_FORMULA_GAMMA, gamma, 0, NULL);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/babl-0.1.110/babl/babl-icc.c 
new/babl-0.1.112/babl/babl-icc.c
--- old/babl-0.1.110/babl/babl-icc.c    2024-10-27 18:31:19.000000000 +0100
+++ new/babl-0.1.112/babl/babl-icc.c    2025-03-10 12:54:03.000000000 +0100
@@ -604,6 +604,7 @@
   int length=65535;
   ICC *state = icc_state_new (icc, length, 10);
 
+  memset (icc, 0, sizeof (icc));
   icc[length]=0;
 
   symmetry_test (state);
@@ -734,6 +735,7 @@
   int length=65535;
   ICC *state = icc_state_new (icc, length, 10);
 
+  memset (icc, 0, sizeof (icc));
   icc[length]=0;
 
   symmetry_test (state);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/babl-0.1.110/babl/babl.h new/babl-0.1.112/babl/babl.h
--- old/babl-0.1.110/babl/babl.h        2024-10-27 18:31:19.000000000 +0100
+++ new/babl-0.1.112/babl/babl.h        2025-03-10 12:54:03.000000000 +0100
@@ -669,7 +669,7 @@
  * like EXR GEGL chooses to load this lienar data as RGB and use the sRGB
  * TRC.
  *
- * Returns: pointer to ICC profile data.
+ * Returns: (transfer none) (array length=length) (element-type guint8): 
pointer to ICC profile data.
  */
 const char *babl_space_get_icc (const Babl *babl, int *length);
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/babl-0.1.110/git-version.h 
new/babl-0.1.112/git-version.h
--- old/babl-0.1.110/git-version.h      2024-10-27 18:31:29.659000600 +0100
+++ new/babl-0.1.112/git-version.h      2025-03-10 12:54:16.210522000 +0100
@@ -1,6 +1,6 @@
 #ifndef __BABL_GIT_VERSION_H__
 #define __BABL_GIT_VERSION_H__
 
-#define BABL_GIT_VERSION "BABL_0_1_108-22-gef6409d"
+#define BABL_GIT_VERSION "BABL_0_1_110-7-g937c0a4"
 
 #endif /* __BABL_GIT_VERSION_H__ */
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/babl-0.1.110/meson.build new/babl-0.1.112/meson.build
--- old/babl-0.1.110/meson.build        2024-10-27 18:31:19.000000000 +0100
+++ new/babl-0.1.112/meson.build        2025-03-10 12:54:03.000000000 +0100
@@ -1,6 +1,6 @@
 project('babl', 'c',
   license: 'LGPL3+',
-  version: '0.1.110',
+  version: '0.1.112',
   meson_version: '>=0.55.0',
   default_options: [
     'buildtype=debugoptimized'

Reply via email to