]>
git.ipfire.org Git - thirdparty/cups.git/log
dependabot[bot] [Mon, 1 Dec 2025 11:37:22 +0000 (11:37 +0000)]
Bump actions/checkout from 5 to 6
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: '6'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Michael R Sweet [Thu, 27 Nov 2025 23:23:59 +0000 (18:23 -0500)]
Fix coding style.
zdohnal [Thu, 27 Nov 2025 15:07:59 +0000 (16:07 +0100)]
Merge commit from fork
Fix various issues in cupsd
Michael R Sweet [Fri, 21 Nov 2025 06:29:53 +0000 (07:29 +0100)]
Fix various issues in cupsd
Various issues were found by @SilverPlate3, recognized as CVE-2025-61915:
- out of bound write when handling IPv6 addresses,
- cupsd crash caused by null dereference when ErrorPolicy value is empty,
On the top of that, Mike Sweet noticed vulnerability via domain socket,
exploitable locally if attacker has access to domain socket and knows username
of user within a group which is present in CUPS system groups:
- rewrite of cupsd.conf via PeerCred authorization via domain socket
The last vulnerability is fixed by introducing PeerCred directive for cups-files.conf,
which controls whether PeerCred is enabled/disabled for user in CUPS system groups.
Fixes CVE-2025-61915
zdohnal [Thu, 27 Nov 2025 15:02:08 +0000 (16:02 +0100)]
Merge commit from fork
Fix unresponsive cupsd process caused by a slow client
Michael R Sweet [Wed, 26 Nov 2025 19:39:00 +0000 (14:39 -0500)]
Fix some issues with job-presets-supported and printer-strings-languages-supported.
Michael R Sweet [Mon, 24 Nov 2025 17:38:51 +0000 (12:38 -0500)]
Don't use shared libraries for macOS CI runner.
Michael R Sweet [Mon, 24 Nov 2025 16:45:35 +0000 (11:45 -0500)]
Fix generated test filter scripts.
Michael R Sweet [Fri, 21 Nov 2025 16:50:08 +0000 (11:50 -0500)]
Fix DEBUG conditional.
Michael R Sweet [Fri, 21 Nov 2025 16:44:59 +0000 (11:44 -0500)]
Need to invalidate destination cache after removing filters.
Michael R Sweet [Fri, 21 Nov 2025 14:04:54 +0000 (09:04 -0500)]
Fix syntax.
Michael R Sweet [Fri, 21 Nov 2025 13:59:53 +0000 (08:59 -0500)]
Always produce the test logs artifacts, especially for failed tests... :)
Michael R Sweet [Thu, 20 Nov 2025 19:26:41 +0000 (14:26 -0500)]
Update artifact file list.
Michael R Sweet [Thu, 20 Nov 2025 19:25:05 +0000 (14:25 -0500)]
Add .txt extension to log files to make post-build introspection easier.
Michael R Sweet [Thu, 20 Nov 2025 19:22:39 +0000 (14:22 -0500)]
Don't copy logs to the build log, just to the build artifact.
Michael R Sweet [Thu, 20 Nov 2025 19:10:35 +0000 (14:10 -0500)]
On a successful run, move the libcups test.log to test-passed.log.
For GitHub CI, upload test logs as artifacts.
Michael R Sweet [Thu, 20 Nov 2025 16:13:42 +0000 (11:13 -0500)]
Move logging of printer attributes to common failure cleanup code.
Update new filetype code to look for application/octet-stream and
application/pdf.
Michael R Sweet [Wed, 19 Nov 2025 13:11:18 +0000 (08:11 -0500)]
Merge pull request #1426 from weblate/weblate-cups-cups
Translations update from Hosted Weblate
anotheranonymoususer [Tue, 18 Nov 2025 12:10:46 +0000 (13:10 +0100)]
Translated using Weblate (Czech)
Currently translated at 12.8% (535 of 4174 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/cs/
Michael R Sweet [Tue, 18 Nov 2025 16:14:27 +0000 (17:14 +0100)]
Fix unresponsive cupsd process caused by a slow client
If client is very slow, it will slow cupsd process for other clients.
The fix is the best effort without turning scheduler cupsd into
multithreaded process which would be too complex and error-prone when
backporting to 2.4.x series.
The fix for unencrypted communication is to follow up on communication
only if there is the whole line on input, and the waiting time is
guarded by timeout.
Encrypted communication now starts after we have the whole client hello
packet, which conflicts with optional upgrade support to HTTPS via
methods other than method OPTIONS, so this optional support defined in
RFC 2817, section 3.1 is removed. Too slow or incomplete requests are
handled by connection timeout.
Fixes CVE-2025-58436
Michael R Sweet [Mon, 17 Nov 2025 16:31:22 +0000 (11:31 -0500)]
Check for NULL attr pointer.
Michael R Sweet [Mon, 17 Nov 2025 16:27:32 +0000 (11:27 -0500)]
Add test filters to allow mimeGetFilterTypes to function on build systems
without the CUPS filters installed.
Michael R Sweet [Mon, 17 Nov 2025 15:13:07 +0000 (10:13 -0500)]
Add missing lock around domain browser.
Michael R Sweet [Sun, 16 Nov 2025 23:15:11 +0000 (18:15 -0500)]
Refactor MIME locking.
Michael R Sweet [Sun, 16 Nov 2025 13:59:31 +0000 (08:59 -0500)]
mimeGetFilterTypes didn't try to find filters to the printer format before
bailing.
Log the attributes returned by the printer when setting up an IPP Everywhere
queue.
Log the printer MIME media type.
Michael R Sweet [Sat, 15 Nov 2025 21:50:24 +0000 (16:50 -0500)]
Update regular expression for testing media size names.
Michael R Sweet [Sun, 16 Nov 2025 13:03:47 +0000 (08:03 -0500)]
Merge pull request #1423 from weblate/weblate-cups-cups
Translations update from Hosted Weblate
Francisco Serrador [Fri, 14 Nov 2025 22:13:03 +0000 (23:13 +0100)]
Translated using Weblate (Spanish)
Currently translated at 100.0% (4174 of 4174 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/es/
Michael R Sweet [Fri, 14 Nov 2025 22:36:51 +0000 (17:36 -0500)]
Return false if we have an unterminated quoted string token, and do a better job
validating "$ENV[name]" and "${name}" expansions (Issue #1422)
Also update the documentation comments.
Michael R Sweet [Fri, 14 Nov 2025 22:12:41 +0000 (17:12 -0500)]
Add debug logging of supported formats.
Michael R Sweet [Fri, 14 Nov 2025 21:56:34 +0000 (16:56 -0500)]
Document that the USB backend supports other "quirks" files in the same
directory as "org.cups.usb-quirks", and where to report issues.
Michael R Sweet [Thu, 13 Nov 2025 17:58:41 +0000 (12:58 -0500)]
Fix memory leak in cups-oauth.
Michael R Sweet [Thu, 13 Nov 2025 20:04:39 +0000 (15:04 -0500)]
Merge pull request #1421 from weblate/weblate-cups-cups
Translations update from Hosted Weblate
Remus-Gabriel Chelu [Thu, 13 Nov 2025 19:41:47 +0000 (20:41 +0100)]
Translated using Weblate (Romanian)
Currently translated at 35.9% (1500 of 4174 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/ro/
Michael R Sweet [Thu, 13 Nov 2025 17:54:18 +0000 (12:54 -0500)]
Fix NULL checks in home.cgi.
Michael R Sweet [Thu, 13 Nov 2025 17:45:10 +0000 (12:45 -0500)]
Report a debug message if we are unable to get the device descriptor when making the URI.
Michael R Sweet [Thu, 13 Nov 2025 17:41:54 +0000 (12:41 -0500)]
Fix Coverity-reported locking issue for subscriptions.
Michael R Sweet [Thu, 13 Nov 2025 16:52:28 +0000 (11:52 -0500)]
Fix format errors in Swedish localization.
Report WARNING when we don't have a complete localization.
Michael R Sweet [Thu, 13 Nov 2025 15:56:02 +0000 (10:56 -0500)]
Add new HTML/CSS developer test page for CUPS web interface (not installed), fix some CSS issues.
Michael R Sweet [Wed, 12 Nov 2025 21:48:32 +0000 (16:48 -0500)]
Add a new mimeGetFilterTypes function for getting the list of supported document
formats for a printer. The new algorithm is O(n log n) vs. the old O(n^4) (Issue #1392)
Michael R Sweet [Wed, 12 Nov 2025 21:48:30 +0000 (16:48 -0500)]
Fix typo in documentation.
Michael R Sweet [Wed, 12 Nov 2025 19:01:02 +0000 (14:01 -0500)]
Fix regression in cupsResolveConflicts.
Michael R Sweet [Wed, 12 Nov 2025 18:53:36 +0000 (13:53 -0500)]
Don't use custom prefix for non-standard sizes - use oe or om (Issue #1388)
Michael R Sweet [Wed, 12 Nov 2025 18:18:47 +0000 (13:18 -0500)]
Add custom default size to media-supported, media-size-supported, and media-col-database as well (Issue #1388)
Michael R Sweet [Tue, 11 Nov 2025 23:04:10 +0000 (18:04 -0500)]
Report default media in media/-col/-ready (Issue #1388)
Michael R Sweet [Tue, 11 Nov 2025 21:28:46 +0000 (16:28 -0500)]
Fix potential crash in cups-driverd due to duplicate PPDs (Issue #1355)
Michael R Sweet [Mon, 10 Nov 2025 22:52:01 +0000 (17:52 -0500)]
Don't error out when scanning for PPDs (Issue #1416)
Michael R Sweet [Mon, 10 Nov 2025 20:13:33 +0000 (15:13 -0500)]
Fix clang warnings.
Michael R Sweet [Mon, 10 Nov 2025 20:13:05 +0000 (15:13 -0500)]
Validate referer URL before using it (Issue #1419)
Michael R Sweet [Mon, 10 Nov 2025 19:04:08 +0000 (14:04 -0500)]
Merge pull request #1418 from snejok/usb-quirks-Samsung-M337x-387x-407x-
04e83460
usb-quirks: disable soft-reset for Samsung M337x 387x 407x Series
Michael R Sweet [Fri, 7 Nov 2025 15:12:27 +0000 (10:12 -0500)]
Merge pull request #1417 from weblate/weblate-cups-cups
Translations update from Hosted Weblate
Francisco Serrador [Fri, 7 Nov 2025 12:36:33 +0000 (13:36 +0100)]
Translated using Weblate (Spanish)
Currently translated at 100.0% (4174 of 4174 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/es/
Francisco Serrador [Wed, 5 Nov 2025 14:31:32 +0000 (15:31 +0100)]
Translated using Weblate (Spanish)
Currently translated at 86.0% (3592 of 4174 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/es/
Michael R Sweet [Tue, 4 Nov 2025 16:47:11 +0000 (11:47 -0500)]
Make sure options pointer is not NULL.
Michael R Sweet [Tue, 4 Nov 2025 01:04:25 +0000 (20:04 -0500)]
Merge pull request #1408 from AZero13/cve
Do not allow negative file descriptors to be closed
AZero13 [Tue, 4 Nov 2025 00:55:13 +0000 (19:55 -0500)]
Do not allow negative file descriptors to be closed
Especially
Michael R Sweet [Tue, 4 Nov 2025 00:36:49 +0000 (19:36 -0500)]
Merge pull request #1405 from AZero13/refactor
Refactor finish_document_data to use goto better
AZero13 [Tue, 4 Nov 2025 00:22:51 +0000 (19:22 -0500)]
Set fd to -1
AZero13 [Mon, 3 Nov 2025 23:47:08 +0000 (18:47 -0500)]
Refactor finish_document_data to use goto better
Michael R Sweet [Sat, 1 Nov 2025 19:20:52 +0000 (15:20 -0400)]
Merge pull request #1399 from weblate/weblate-cups-cups
Translations update from Hosted Weblate
Francisco Serrador [Fri, 31 Oct 2025 19:21:56 +0000 (20:21 +0100)]
Translated using Weblate (Spanish)
Currently translated at 79.0% (3301 of 4174 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/es/
Michael R Sweet [Sat, 1 Nov 2025 14:11:15 +0000 (10:11 -0400)]
Merge pull request #1398 from OpenPrinting/dependabot/github_actions/github/codeql-action-4
Bump github/codeql-action from 3 to 4
dependabot[bot] [Sat, 1 Nov 2025 10:01:44 +0000 (10:01 +0000)]
Bump github/codeql-action from 3 to 4
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3 to 4.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v3...v4)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-version: '4'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Lenar Shakirov [Fri, 31 Oct 2025 16:25:32 +0000 (19:25 +0300)]
usb-quirks: disable soft-reset for Samsung M337x 387x 407x Series
04e8:3460 Samsung Electronics Co., Ltd M337x 387x 407x Series
I noticed that after first page is printed in CUPS scanner stops responding
Michael R Sweet [Fri, 31 Oct 2025 15:22:58 +0000 (11:22 -0400)]
Fix cupsJWTSign for EC with GNU TLS.
Michael R Sweet [Thu, 30 Oct 2025 23:51:38 +0000 (19:51 -0400)]
Update list of attributes for each group.
Michael R Sweet [Wed, 29 Oct 2025 18:37:07 +0000 (14:37 -0400)]
Pick up fixed from libcups for cupsCreateCredentials, cupsCreateCredentialsRequest, and httpGetDateTime.
Michael R Sweet [Thu, 23 Oct 2025 21:55:46 +0000 (17:55 -0400)]
Add "WITH-VALUE !number" comparison for ipptool.
Clean up man pages.
Michael R Sweet [Wed, 22 Oct 2025 22:15:32 +0000 (18:15 -0400)]
Update/sync docos.
Michael R Sweet [Wed, 22 Oct 2025 21:55:34 +0000 (17:55 -0400)]
Cleanup and sync with changes from libcups.
Michael R Sweet [Tue, 21 Oct 2025 23:23:00 +0000 (19:23 -0400)]
Sync up documentation and other changes from libcups.
Michael R Sweet [Tue, 21 Oct 2025 20:38:24 +0000 (16:38 -0400)]
Sync up documentation and other changes from libcups.
Michael R Sweet [Tue, 21 Oct 2025 16:09:03 +0000 (12:09 -0400)]
Add 'install' sub-command to cups-x509 command (Issue #1227)
Michael R Sweet [Fri, 17 Oct 2025 17:43:32 +0000 (13:43 -0400)]
Show PPD load errors, stop test early for hard errors.
Michael R Sweet [Fri, 17 Oct 2025 17:30:00 +0000 (13:30 -0400)]
Update MIME unit test:
- Use test-internal.h header.
- Add support for finding list of source formats for a given dest
format, like cupsd does, and include timing information.
- Migrate to C99 comments.
- Modernize CUPS array API usage.
Michael R Sweet [Thu, 16 Oct 2025 14:24:25 +0000 (10:24 -0400)]
Fix whitespace.
Michael R Sweet [Wed, 8 Oct 2025 18:18:05 +0000 (14:18 -0400)]
Amend the SECURITY.md file to add a section on how reports are processed.
Zdenek Dohnal [Tue, 7 Oct 2025 11:47:44 +0000 (13:47 +0200)]
select.c: Ajust indentation due code guidelines
Michael R Sweet [Sun, 5 Oct 2025 22:30:21 +0000 (18:30 -0400)]
Merge pull request #1381 from weblate/weblate-cups-cups
Translations update from Hosted Weblate
Francisco Serrador [Sat, 4 Oct 2025 22:51:52 +0000 (00:51 +0200)]
Translated using Weblate (Spanish)
Currently translated at 78.9% (3297 of 4174 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/es/
Michael R Sweet [Thu, 2 Oct 2025 22:23:33 +0000 (18:23 -0400)]
Merge pull request #1380 from weblate/weblate-cups-cups
Translations update from Hosted Weblate
Ettore Atalan [Wed, 1 Oct 2025 21:18:37 +0000 (23:18 +0200)]
Translated using Weblate (German)
Currently translated at 74.5% (3113 of 4174 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/de/
Michael R Sweet [Sun, 28 Sep 2025 12:34:18 +0000 (08:34 -0400)]
Merge pull request #1376 from weblate/weblate-cups-cups
Translations update from Hosted Weblate
Ettore Atalan [Sat, 27 Sep 2025 09:22:58 +0000 (11:22 +0200)]
Translated using Weblate (German)
Currently translated at 74.1% (3097 of 4174 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/de/
Michael R Sweet [Thu, 25 Sep 2025 21:50:53 +0000 (17:50 -0400)]
Fix clang warnings, clean up cupsArray usage.
Michael R Sweet [Thu, 25 Sep 2025 19:14:44 +0000 (15:14 -0400)]
Fix clang-detected issues.
Michael R Sweet [Thu, 25 Sep 2025 13:52:43 +0000 (09:52 -0400)]
Bump copyright.
Michael R Sweet [Thu, 25 Sep 2025 13:51:56 +0000 (09:51 -0400)]
Merge pull request #1373 from houranled/rename
Use correct parameter name : rename 'value' to 'key'.Rename
李浩然 [Thu, 25 Sep 2025 09:52:22 +0000 (17:52 +0800)]
Merge branch 'OpenPrinting:master' into rename
houranled [Thu, 25 Sep 2025 09:50:51 +0000 (17:50 +0800)]
Use correct parameter name : rename 'value' to 'key'.
Michael R Sweet [Wed, 24 Sep 2025 17:02:15 +0000 (13:02 -0400)]
Merge pull request #1372 from weblate/weblate-cups-cups
Translations update from Hosted Weblate
Максим Горпиніч [Wed, 24 Sep 2025 16:01:22 +0000 (18:01 +0200)]
Added translation using Weblate (Ukrainian)
Michael R Sweet [Tue, 23 Sep 2025 22:27:27 +0000 (18:27 -0400)]
Fix typo.
Michael R Sweet [Tue, 23 Sep 2025 22:24:35 +0000 (18:24 -0400)]
Update locking for Avahi.
zdohnal [Tue, 23 Sep 2025 08:47:50 +0000 (10:47 +0200)]
Merge pull request #1370 from weblate/weblate-cups-cups
Translations update from Hosted Weblate
Sadaharu Wakisaka [Mon, 22 Sep 2025 07:35:13 +0000 (09:35 +0200)]
Translated using Weblate (Japanese)
Currently translated at 40.4% (1689 of 4174 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/ja/
luca-vercelli [Mon, 22 Sep 2025 07:37:42 +0000 (09:37 +0200)]
Translated using Weblate (Italian)
Currently translated at 73.4% (3064 of 4174 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/it/
zdohnal [Tue, 23 Sep 2025 06:20:58 +0000 (08:20 +0200)]
scheduler: Fix applying print-as-raster default
Currently, the default was applied only when present in the request, which is how lp behaves. However the application does not have to include defaults in the request, so we have to apply it in scheduler.
Additionally, this covers a case when print-as-raster is set by default, but we want to disable it in a specific request.
Michael R Sweet [Mon, 22 Sep 2025 17:19:30 +0000 (13:19 -0400)]
_httpWait's usessl parameter wasn't being used.
Zdenek Dohnal [Mon, 22 Sep 2025 12:33:45 +0000 (14:33 +0200)]
scheduler: Fix applying print-as-raster default
Currently, the default was applied only when present in the request,
which is how `lp` behaves. However the application does not have to
include defaults in the request, so we have to apply it in scheduler.
Additionally, this covers a case when print-as-raster is set by default,
but we want to disable it in a specific request.