public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/hplip] f45: scanning fails on Photosmart 5520 (USB), http_read: response exceeds buffer
@ 2026-10-13  7:21 Zdenek Dohnal
  0 siblings, 0 replies; only message in thread
From: Zdenek Dohnal @ 2026-10-13  7:21 UTC (permalink / raw)
  To: git-commits

          A new commit has been pushed.

          Repo   : rpms/hplip
          Branch : f45
          Commit : 6fa2b0710039acfbe58a287fa014103077398f6e
          Author : Zdenek Dohnal <zdohnal@redhat.com>
          Date   : 2026-10-12T14:29:19+02:00
          Stats  : +22/-1 in 2 file(s)
          URL    : https://src.fedoraproject.org/rpms/hplip/c/6fa2b0710039acfbe58a287fa014103077398f6e?branch=f45

          Log:
          scanning fails on Photosmart 5520 (USB), http_read: response exceeds buffer

(fedora#2548961)

---
diff --git a/hplip-scan-exceed-buf.patch b/hplip-scan-exceed-buf.patch
new file mode 100644
index 0000000..652672f
--- /dev/null
+++ b/hplip-scan-exceed-buf.patch
@@ -0,0 +1,12 @@
+diff --git a/scan/sane/http.c b/scan/sane/http.c
+index 108cf0b..ffce03c 100644
+--- a/scan/sane/http.c
++++ b/scan/sane/http.c
+@@ -496,7 +501,6 @@ enum HTTP_RESULT __attribute__ ((visibility ("hidden"))) http_read(HTTP_HANDLE h
+          while(1)
+          {
+             ret = read_line (ps, line, sizeof(line), tmo, &len);
+-            *bytes_read += len;
+             if(ret) //failed to read line 
+ 		    {
+ 		            ps->footer = 0;

diff --git a/hplip.spec b/hplip.spec
index 2f732f5..f46f18d 100644
--- a/hplip.spec
+++ b/hplip.spec
@@ -7,7 +7,7 @@
 Summary: HP Linux Imaging and Printing Project
 Name: hplip
 Version: 3.26.6
-Release: 1%{?dist}
+Release: 2%{?dist}
 # most files (base/*, *, ui*/...) - GPL2+
 # prnt/hpijs/ jpeg related files - IJG
 # prnt/* - BSD-3-Clause-HP - it is modified a little, asked here https://gitlab.com/fedora/legal/fedora-license-data/-/issues/267
@@ -260,6 +260,9 @@ Patch73: hplip-plugin-stdout.patch
 # - connecting to HP site requires curl/wget to set user-agent to pretend to be a browser
 # https://bugs.launchpad.net/hplip/+bug/2154206
 Patch74: hplip-curl-fallback.patch
+# 2548961 - scanning fails on Photosmart 5520 (USB), "http_read: response exceeds buffer"
+# https://bugs.launchpad.net/hplip/+bug/2169330
+Patch75: hplip-scan-exceed-buf.patch
 
 %if 0%{?fedora} || 0%{?rhel} <= 8
 # mention hplip-gui if you want to have GUI
@@ -625,6 +628,8 @@ done
 %patch -P 73 -p1 -b .plugin-stdout
 # https://bugs.launchpad.net/hplip/+bug/2154206
 %patch -P 74 -p1 -b .curl-fallback
+# https://bugs.launchpad.net/hplip/+bug/2169330
+%patch -P 75 -p1 -b .scan-exceed-buf
 
 # Fedora specific patches now, don't put a generic patches under it
 %if 0%{?fedora} || 0%{?rhel} <= 8
@@ -996,6 +1001,10 @@ find doc/images -type f -exec chmod 644 {} \;
 %config(noreplace) %{_sysconfdir}/sane.d/dll.d/hpaio
 
 %changelog
+* Mon Oct 12 2026 Zdenek Dohnal <zdohnal@redhat.com> - 3.26.6-2
+- scanning fails on Photosmart 5520 (USB), http_read: response exceeds buffer
+  (fedora#2548961)
+
 * Wed Sep 23 2026 Zdenek Dohnal <zdohnal@redhat.com> - 3.26.6-1
 - 3.26.6, fixes CVE-2026-91105,CVE-2026-91103,CVE-2026-91102,CVE-2026-91101,
   CVE-2026-91100,CVE-2026-91099,CVE-2026-91098,CVE-2026-91097

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-13  7:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-13  7:21 [rpms/hplip] f45: scanning fails on Photosmart 5520 (USB), http_read: response exceeds buffer Zdenek Dohnal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox