public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Zdenek Dohnal <zdohnal@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/hplip] f45: scanning fails on Photosmart 5520 (USB), http_read: response exceeds buffer
Date: Tue, 13 Oct 2026 07:21:33 GMT	[thread overview]
Message-ID: <179187609373.1.17079582364779444534.rpms-hplip-6fa2b0710039@fedoraproject.org> (raw)

          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

                 reply	other threads:[~2026-10-13  7:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179187609373.1.17079582364779444534.rpms-hplip-6fa2b0710039@fedoraproject.org \
    --to=zdohnal@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox