Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gdk-pixbuf for openSUSE:Factory 
checked in at 2025-07-20 15:28:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gdk-pixbuf (Old)
 and      /work/SRC/openSUSE:Factory/.gdk-pixbuf.new.8875 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gdk-pixbuf"

Sun Jul 20 15:28:09 2025 rev:98 rq:1294303 version:2.42.12

Changes:
--------
--- /work/SRC/openSUSE:Factory/gdk-pixbuf/gdk-pixbuf.changes    2024-05-17 
20:05:48.976799114 +0200
+++ /work/SRC/openSUSE:Factory/.gdk-pixbuf.new.8875/gdk-pixbuf.changes  
2025-07-20 15:28:29.074610885 +0200
@@ -1,0 +2,7 @@
+Fri Jul 18 06:35:12 UTC 2025 - Alynx Zhou <alynx.z...@suse.com>
+
+- Add gdk-pixbuf-fix-decoder-written-bytes-reporting.patch: Fix
+  memory leak caused by wrong written bytes reported by decoder
+  (bsc#1245227).
+
+-------------------------------------------------------------------

New:
----
  gdk-pixbuf-fix-decoder-written-bytes-reporting.patch

----------(New B)----------
  New:
- Add gdk-pixbuf-fix-decoder-written-bytes-reporting.patch: Fix
  memory leak caused by wrong written bytes reported by decoder
----------(New E)----------

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

Other differences:
------------------
++++++ gdk-pixbuf.spec ++++++
--- /var/tmp/diff_new_pack.Ft05aq/_old  2025-07-20 15:28:29.718637535 +0200
+++ /var/tmp/diff_new_pack.Ft05aq/_new  2025-07-20 15:28:29.722637701 +0200
@@ -33,6 +33,8 @@
 Source99:       baselibs.conf
 # PATCH-FIX-UPSTREAM gdk-pixbuf-jpeg-slow.patch -- 
https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/merge_requests/174
 Patch0:         gdk-pixbuf-jpeg-slow.patch
+# PATCH-FIX-UPSTREAM gdk-pixbuf-fix-decoder-written-bytes-reporting.patch 
bsc#1245227 alynx.z...@suse.com -- Fix wrong written bytes reported by decoder
+Patch1:         gdk-pixbuf-fix-decoder-written-bytes-reporting.patch
 
 BuildRequires:  docbook-xsl-stylesheets
 BuildRequires:  docutils

++++++ gdk-pixbuf-fix-decoder-written-bytes-reporting.patch ++++++
>From c4986342b241cdc075259565f3fa7a7597d32a32 Mon Sep 17 00:00:00 2001
From: lumi <l...@suwi.moe>
Date: Sat, 7 Jun 2025 22:27:06 +0200
Subject: [PATCH] lzw: Fix reporting of bytes written in decoder

When the LZW decoder encounters an invalid code, it stops
processing the image and returns the whole buffer size.
It should return the amount of bytes written, instead.

Fixes #257
---
 gdk-pixbuf/lzw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdk-pixbuf/lzw.c b/gdk-pixbuf/lzw.c
index 15293560b..4f3dd8beb 100644
--- a/gdk-pixbuf/lzw.c
+++ b/gdk-pixbuf/lzw.c
@@ -208,7 +208,7 @@ lzw_decoder_feed (LZWDecoder *self,
                                 /* Invalid code received - just stop here */
                                 if (self->code >= self->code_table_size) {
                                         self->last_code = self->eoi_code;
-                                        return output_length;
+                                        return n_written;
                                 }
 
                                 /* Convert codeword into indexes */
-- 
GitLab

Reply via email to