Skip to content

Commit 2dc021f

Browse files
committed
Fix an infinite loop issue in GTK+ (Issue #1439)
1 parent 5661ec7 commit 2dc021f

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Changes in CUPS v2.4.16 (YYYY-MM-DD)
1010
- The web interface did not support domain usernames fully (Issue #1441)
1111
- Made the presence of the "JobPrivateXxx" and "SubscriptionPrivateXxx"
1212
directives outside a Policy an informational warning.
13+
- Fixed an infinite loop issue in the GTK+ print dialog (Issue #1439)
1314

1415

1516
Changes in CUPS v2.4.15 (2025-11-27)

cups/http.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2779,7 +2779,7 @@ _httpUpdate(http_t *http, /* I - HTTP connection */
27792779
/* See whether our read buffer is full... */
27802780
DEBUG_printf(("2_httpUpdate: used=%d", http->used));
27812781

2782-
if (http->used > 0 && !memchr(http->buffer, '\n', (size_t)http->used) && (size_t)http->used < sizeof(http->buffer))
2782+
if (http->used < sizeof(http->buffer))
27832783
{
27842784
/* No, try filling in more data... */
27852785
if ((bytes = http_read(http, http->buffer + http->used, sizeof(http->buffer) - (size_t)http->used, /*timeout*/0)) > 0)

0 commit comments

Comments
 (0)