You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closes: OpenPrinting#879
In case of some errors httpGets2 waits for the next packet. In all cases of
errors it should return NULL.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
xypron
added a commit
to xypron/cups
that referenced
this issue
Feb 1, 2024
Closes: OpenPrinting#879
In case of some errors httpGets2 waits for the next packet. In all other
cases of errors it should return NULL to avoid negative values of
http->used leading to ending up in an endless loop.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Describe the bug
cups-browsed runs into an infinite loop in httpGets.
To Reproduce
The issues was sometimes observed in cups-browsed on Ubuntu 24.04. See https://bugs.launchpad.net/ubuntu/+source/cups-browsed/+bug/2049315.
Expected behavior
httpGets2 should not enter an endless loop if a connection error occurs or the webserver provides invalid data.
System Information:
Additional context
Debugging showed negative values of http->used in httpGets.
Some error paths lead to negative numbers being added to http->used. The following diff should avoid this:
The text was updated successfully, but these errors were encountered: