]>
git.ipfire.org Git - thirdparty/cups.git/log
Michael R Sweet [Tue, 28 Jul 2026 17:21:45 +0000 (13:21 -0400)]
Do some cleanup of TLS cert expiration changes (Issue #1590)
Michael R Sweet [Tue, 28 Jul 2026 17:13:21 +0000 (13:13 -0400)]
Merge pull request #1590 from lzwind/fix/auto-renew-expired-self-signed-cert
Auto-regenerate expired self-signed certificates
Michael R Sweet [Tue, 28 Jul 2026 16:50:06 +0000 (12:50 -0400)]
Merge pull request #1644 from aizu-m/rastertolabel-pcl-compare-bounds
fix out-of-bounds read in rastertolabel delta-row compare
Michael R Sweet [Tue, 28 Jul 2026 16:48:56 +0000 (12:48 -0400)]
Merge pull request #1649 from hissamshar/master
scheduler: Fix typo in have_source check preventing default trays
Michael R Sweet [Tue, 28 Jul 2026 16:47:02 +0000 (12:47 -0400)]
Drop support for old HP DeskJet CRet mode that has not been supported by RIPs for over a decade (Issue #1650)
Michael R Sweet [Tue, 28 Jul 2026 16:21:31 +0000 (12:21 -0400)]
Add length checks to cupsSignCredentialsRequest (Issue #1640)
Michael R Sweet [Tue, 28 Jul 2026 16:07:41 +0000 (12:07 -0400)]
Add nul checks to auth functions.
Michael R Sweet [Mon, 27 Jul 2026 21:01:52 +0000 (17:01 -0400)]
Expand on ippValidateAttribute changes (Issue #1653)
- Adopt libcups' global regular expression cache and other optimizations.
- Add more validation and file tests to testipp.
Michael R Sweet [Mon, 27 Jul 2026 20:31:17 +0000 (16:31 -0400)]
Merge pull request #1653 from nmuggli/validate-language-master
Validate .language subfield of IPP attributes
Nathan Muggli [Mon, 27 Jul 2026 16:22:10 +0000 (10:22 -0600)]
Small optimization by moving ipp_is_valid_language
Since the regex checks are more expensive, move them after the other
validation checks.
Nathan Muggli [Mon, 27 Jul 2026 16:04:24 +0000 (10:04 -0600)]
Update function name and signature.
Change this from ipp_validate_language to ipp_is_valid_language and have
it return a bool.
Michael R Sweet [Sun, 26 Jul 2026 23:10:30 +0000 (19:10 -0400)]
Merge pull request #1651 from nmuggli/fix-media-override
Only ignore specific options when specified in media=
Michael R Sweet [Sun, 26 Jul 2026 23:02:53 +0000 (19:02 -0400)]
Back out GNU TLS changes for JWT - already had a limit on the signature size and the PR changes caused a regression.
Michael R Sweet [Sun, 26 Jul 2026 22:44:47 +0000 (18:44 -0400)]
Add missing Set-Printer-Attributes policy.
Michael R Sweet [Sun, 26 Jul 2026 22:33:36 +0000 (18:33 -0400)]
Fix a clang warning.
Michael R Sweet [Sun, 26 Jul 2026 22:23:47 +0000 (18:23 -0400)]
Only store signature when the length fits.
Michael R Sweet [Sun, 26 Jul 2026 22:10:47 +0000 (18:10 -0400)]
Fix code spacing.
Michael R Sweet [Sun, 26 Jul 2026 22:05:36 +0000 (18:05 -0400)]
Merge pull request #1647 from weblate/weblate-cups-cups
Translations update from Hosted Weblate
numerfolt [Tue, 21 Jul 2026 20:24:02 +0000 (22:24 +0200)]
Translated using Weblate (German)
Currently translated at 74.2% (3110 of 4188 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/de/
arkeelin [Sun, 19 Jul 2026 17:40:27 +0000 (19:40 +0200)]
Translated using Weblate (Ukrainian)
Currently translated at 0.4% (20 of 4188 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/uk/
reducedradius [Fri, 17 Jul 2026 16:07:23 +0000 (18:07 +0200)]
Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 35.0% (1467 of 4188 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/zh_Hans/
Américo Monteiro [Thu, 16 Jul 2026 08:50:33 +0000 (10:50 +0200)]
Translated using Weblate (Portuguese)
Currently translated at 100.0% (4188 of 4188 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/pt/
Américo Monteiro [Wed, 15 Jul 2026 21:46:03 +0000 (23:46 +0200)]
Translated using Weblate (Portuguese)
Currently translated at 99.9% (4187 of 4188 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/pt/
Américo Monteiro [Mon, 13 Jul 2026 21:54:18 +0000 (23:54 +0200)]
Translated using Weblate (Portuguese)
Currently translated at 99.9% (4187 of 4188 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/pt/
Américo Monteiro [Sun, 12 Jul 2026 23:51:09 +0000 (01:51 +0200)]
Translated using Weblate (Portuguese)
Currently translated at 99.9% (4187 of 4188 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/pt/
Américo Monteiro [Sun, 12 Jul 2026 00:29:57 +0000 (02:29 +0200)]
Translated using Weblate (Portuguese)
Currently translated at 99.9% (4187 of 4188 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/pt/
Américo Monteiro [Fri, 10 Jul 2026 22:53:41 +0000 (00:53 +0200)]
Translated using Weblate (Portuguese)
Currently translated at 99.9% (4187 of 4188 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/pt/
Américo Monteiro [Thu, 9 Jul 2026 23:15:19 +0000 (01:15 +0200)]
Translated using Weblate (Portuguese)
Currently translated at 99.9% (4187 of 4188 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/pt/
Américo Monteiro [Wed, 8 Jul 2026 22:46:18 +0000 (00:46 +0200)]
Translated using Weblate (Portuguese)
Currently translated at 99.9% (4187 of 4188 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/pt/
Michael R Sweet [Sun, 26 Jul 2026 21:58:48 +0000 (17:58 -0400)]
Merge pull request #1652 from aizu-m/openssl-cred-name-init
check X509_NAME_get_text_by_NID return in credential name checks
Nathan Muggli [Fri, 24 Jul 2026 00:02:30 +0000 (18:02 -0600)]
Format test cases a little more consistently.
Nathan Muggli [Thu, 23 Jul 2026 23:13:49 +0000 (17:13 -0600)]
Validate .language subfield of IPP attributes
ippValidateAttribute will validate strings, but it doesn't validate the
string.language subfield of IPP_TAG_TEXTLANG or IPP_TAG_NAMELANG. Add a
helper method to validate these values using the same validation that is
currently used for IPP_TAG_LANGUAGE.
Added some tests as well.
Aizal Khan [Thu, 23 Jul 2026 05:49:19 +0000 (11:19 +0530)]
check X509_NAME_get_text_by_NID return in credential name checks
Liu Zheng [Mon, 20 Jul 2026 00:58:42 +0000 (08:58 +0800)]
Fix cupsGetCredentialsExpiration() called with a file path
The previous commit passed `crtfile` (a path like /etc/cups/ssl/host.crt)
to cupsGetCredentialsExpiration(), but that function expects a PEM
string, not a file path. Both backends treat the argument as PEM
content (BIO_new_mem_buf / gnutls datum over the string bytes), so a
path fails to import, the function returns 0, and
`0 > time(NULL)` is always false. As a result `have_creds` was always
false and CUPS regenerated the self-signed cert on every restart, even
when the existing cert was still valid.
Load the PEM string first via cupsCopyCredentials() (the same helper
cupsGetCredentialsTrust() uses) and pass that to
cupsGetCredentialsExpiration(). Only apply the expiration check to
CUPS-managed self-signed certs in the keystore; the Let's Encrypt / CA
cert branch keeps the pre-existing "exists => use" behavior, since
Let's Encrypt is renewed by certbot and auto-regenerating would
overwrite a real CA cert with a self-signed one.
Fixes: #1519
Aizal Khan [Sun, 5 Jul 2026 08:19:07 +0000 (13:49 +0530)]
fix out-of-bounds read in rastertolabel delta-row compare
Signed-off-by: Aizal Khan <aizumusheer2@gmail.com>
Nathan Muggli [Thu, 16 Jul 2026 18:33:54 +0000 (12:33 -0600)]
Update variable names to make them more clear
Nathan Muggli [Wed, 15 Jul 2026 21:52:36 +0000 (15:52 -0600)]
Only ignore specific options when specified in media=
If media specifies only the PageSize, we still want to allow an
InputSlot PPD option to be used.
Similarly for PageRegion and MediaType.
Previously, if media= was specified, all PPD options for PageSize,
PageRegion, InputSlot, and MediaType were ignored even if they were not
specified in the media= IPP attriubte.
Hisam Mehboob [Sat, 11 Jul 2026 14:03:12 +0000 (19:03 +0500)]
Fix syntax error: !== is not valid C, use !
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Hisam Mehboob [Sat, 11 Jul 2026 13:47:31 +0000 (18:47 +0500)]
scheduler: Fix typo in have_source check preventing default trays
In commit
074526b0 , the logic for checking whether a job already specified a paper source was refactored into the `have_source` boolean. However, the De Morgan's inversion for the `HPPaperSource` attribute was accidentally written as `== NULL` instead of `!= NULL`.
This caused `have_source` to erroneously evaluate to `true` for almost all print jobs (since normal jobs never include the proprietary `HPPaperSource` attribute). As a result, the scheduler assumed the client had explicitly requested a tray, causing it to skip mapping the queue's `DefaultInputSlot` into the outgoing job options.
This commit corrects the operator so that `have_source` correctly evaluates to `false` when no tray is specified, allowing IPP Everywhere printers to successfully receive their default tray assignments.
Fixes #1636
Michael R Sweet [Tue, 7 Jul 2026 22:46:57 +0000 (18:46 -0400)]
Merge pull request #1645 from weblate/weblate-cups-cups
Translations update from Hosted Weblate
Américo Monteiro [Tue, 7 Jul 2026 21:48:17 +0000 (23:48 +0200)]
Translated using Weblate (Portuguese)
Currently translated at 99.9% (4184 of 4188 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/pt/
Américo Monteiro [Mon, 6 Jul 2026 23:13:42 +0000 (01:13 +0200)]
Translated using Weblate (Portuguese)
Currently translated at 97.0% (4063 of 4188 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/pt/
Américo Monteiro [Sun, 5 Jul 2026 21:13:28 +0000 (23:13 +0200)]
Translated using Weblate (Portuguese)
Currently translated at 95.6% (4005 of 4188 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/pt/
Michael R Sweet [Sat, 4 Jul 2026 23:35:32 +0000 (19:35 -0400)]
Merge pull request #1643 from weblate/weblate-cups-cups
Translations update from Hosted Weblate
Américo Monteiro [Sat, 4 Jul 2026 21:49:25 +0000 (23:49 +0200)]
Translated using Weblate (Portuguese)
Currently translated at 95.4% (3999 of 4188 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/pt/
Michael R Sweet [Sat, 4 Jul 2026 15:21:22 +0000 (11:21 -0400)]
Fix section parsing in web help index code (Issue #1641)
Michael R Sweet [Sat, 4 Jul 2026 15:00:35 +0000 (11:00 -0400)]
Merge pull request #1642 from weblate/weblate-cups-cups
Translations update from Hosted Weblate
Américo Monteiro [Sat, 4 Jul 2026 00:13:57 +0000 (02:13 +0200)]
Translated using Weblate (Portuguese)
Currently translated at 95.4% (3999 of 4188 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/pt/
hyperflint [Fri, 3 Jul 2026 09:02:46 +0000 (11:02 +0200)]
Translated using Weblate (Russian)
Currently translated at 29.6% (1241 of 4188 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/ru/
Michael R Sweet [Thu, 2 Jul 2026 16:53:14 +0000 (12:53 -0400)]
Merge pull request #1637 from aizu-m/commandtops-skip-terminator
stop response skip loop at nul in commandtops
Michael R Sweet [Thu, 2 Jul 2026 16:52:16 +0000 (12:52 -0400)]
Merge pull request #1638 from OpenPrinting/dependabot/github_actions/actions/checkout-7
Bump actions/checkout from 6 to 7
dependabot[bot] [Wed, 1 Jul 2026 10:42:29 +0000 (10:42 +0000)]
Bump actions/checkout from 6 to 7
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7.
- [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/v6...v7)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: '7'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Aizal Khan [Wed, 1 Jul 2026 07:59:30 +0000 (13:29 +0530)]
stop response skip loop at nul in commandtops
Michael R Sweet [Mon, 29 Jun 2026 17:10:27 +0000 (13:10 -0400)]
Merge pull request #1628 from weblate/weblate-cups-cups
Translations update from Hosted Weblate
luca-vercelli [Mon, 29 Jun 2026 07:08:08 +0000 (09:08 +0200)]
Translated using Weblate (Italian)
Currently translated at 78.6% (3294 of 4188 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/it/
Remus-Gabriel Chelu [Fri, 26 Jun 2026 07:29:25 +0000 (09:29 +0200)]
Translated using Weblate (Romanian)
Currently translated at 100.0% (4188 of 4188 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/ro/
Matthaiks [Thu, 25 Jun 2026 19:18:06 +0000 (21:18 +0200)]
Translated using Weblate (Polish)
Currently translated at 46.3% (1943 of 4188 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/pl/
Libre [Fri, 26 Jun 2026 18:10:56 +0000 (20:10 +0200)]
Translated using Weblate (Spanish)
Currently translated at 100.0% (4188 of 4188 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/es/
தமிழ்நேரம் [Wed, 24 Jun 2026 08:59:56 +0000 (10:59 +0200)]
Translated using Weblate (Tamil)
Currently translated at 99.4% (4158 of 4183 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/ta/
தமிழ்நேரம் [Mon, 22 Jun 2026 07:33:52 +0000 (09:33 +0200)]
Added translation using Weblate (Tamil)
Michael R Sweet [Mon, 29 Jun 2026 17:06:12 +0000 (13:06 -0400)]
Make sure we don't report invalid printer-state-reasons or printer-mandatory-job-attributes strings (Issue #1632)
Michael R Sweet [Mon, 29 Jun 2026 16:44:19 +0000 (12:44 -0400)]
Changelog.
Michael R Sweet [Mon, 29 Jun 2026 16:43:34 +0000 (12:43 -0400)]
Merge pull request #1635 from liushuyu/master
Add PWG media sizes for PRC D0-D6 and PRC ZL
liushuyu [Mon, 29 Jun 2026 14:20:40 +0000 (22:20 +0800)]
Add PWG media sizes for PRC D0-D6 and PRC ZL.
Also moves the Japanese media sizes from the Chinese block to the
Japanese block.
Michael R Sweet [Sat, 27 Jun 2026 14:25:05 +0000 (10:25 -0400)]
Fix escaping of spaces in options (Issue #1630)
Michael R Sweet [Thu, 25 Jun 2026 19:03:19 +0000 (15:03 -0400)]
Update message catalogs, packaging files, changelog.
Michael R Sweet [Thu, 25 Jun 2026 18:50:48 +0000 (14:50 -0400)]
Merge pull request #1535 from jackadam1981/i18n-chinese
Add Chinese (zh_CN/zh_TW) web UI, static doc home pages, and packaging
Michael R Sweet [Thu, 25 Jun 2026 18:45:42 +0000 (14:45 -0400)]
Merge pull request #1631 from aizu-m/collection-string-terminator
fix out-of-bounds write in cups_collection_string
Aizal Khan [Thu, 25 Jun 2026 17:15:13 +0000 (22:45 +0530)]
bound the nul terminator in cups_collection_string
The serialiser advances bufptr past bufend to report the length needed, so the final *bufptr = '\0' could terminate out of bounds once a collection overflows the buffer. Clamp it the way ippAttributeString already does, and keep the bufsize==0 sub-collection call safe.
Michael R Sweet [Tue, 23 Jun 2026 19:26:50 +0000 (15:26 -0400)]
Handle empty POST/PUT request message bodies.
Michael R Sweet [Tue, 23 Jun 2026 15:03:11 +0000 (11:03 -0400)]
Merge pull request #1629 from zdohnal/ppcache-template-free
ppd-cache.c: Free memory leaks when loading caches
Michael R Sweet [Tue, 23 Jun 2026 14:56:35 +0000 (10:56 -0400)]
Validate attributes-natural-language, and normalize the logging punctuation.
Zdenek Dohnal [Tue, 23 Jun 2026 14:40:48 +0000 (16:40 +0200)]
ppd-cache.c: Free memory leaks when loading caches
When we create temp queue for service shared by ippeveprinter, there are
several leaks in cupsd.
Michael R Sweet [Mon, 22 Jun 2026 21:23:05 +0000 (17:23 -0400)]
Y2038 fixes (Issue #1592)
- Use dateTime attribute variants.
- Use CUPS_LLFMT and CUPS_LLCAST for printing and saving time_t values.
- Use strtoll to read time_t values.
- Update web interface to request and display dateTime values.
Michael R Sweet [Mon, 22 Jun 2026 18:38:22 +0000 (14:38 -0400)]
Merge pull request #1618 from abubakarsabir924-cell/fix-1531-signed
cups: Fix use-after-free in cups_enum_dests() for local destinations (issue #1531)
Michael R Sweet [Mon, 22 Jun 2026 18:38:12 +0000 (14:38 -0400)]
Mirror temporary device URI changes from 2.4.x.
Michael R Sweet [Sun, 21 Jun 2026 16:41:22 +0000 (12:41 -0400)]
Merge pull request #1623 from aizu-m/client-ctype-mask
mask request bytes before ctype calls in client.c
aizu-m [Sun, 21 Jun 2026 08:22:11 +0000 (13:52 +0530)]
mask request bytes before ctype calls in client.c
Michael R Sweet [Sun, 21 Jun 2026 00:34:12 +0000 (20:34 -0400)]
Clear USB fault when getting device ID (Issue #1606)
Michael R Sweet [Sun, 21 Jun 2026 00:03:39 +0000 (20:03 -0400)]
Clean up Dependencies file.
Michael R Sweet [Sat, 20 Jun 2026 23:42:26 +0000 (19:42 -0400)]
Refactor PackBits code (Issue #1613)
Michael R Sweet [Sat, 20 Jun 2026 21:20:05 +0000 (17:20 -0400)]
Merge pull request #1614 from aizu-m/mime-char-bounds
fix out-of-bounds read in mime_check_rules char test
Michael R Sweet [Fri, 19 Jun 2026 15:22:30 +0000 (11:22 -0400)]
Save PPD cache in testcache unit test.
abubakarsabir924-cell [Mon, 15 Jun 2026 19:48:05 +0000 (15:48 -0400)]
cups: Fix use-after-free in cups_enum_dests() for local destinations (Issue #1531)
aizu-m [Sun, 14 Jun 2026 16:57:49 +0000 (22:27 +0530)]
fix out-of-bounds read in mime_check_rules char test
Michael R Sweet [Sat, 13 Jun 2026 16:21:46 +0000 (12:21 -0400)]
Fix JSON and PPD/PS long number error handling (Issue #1608)
Michael R Sweet [Sat, 13 Jun 2026 15:58:24 +0000 (11:58 -0400)]
Fix SNMP hex string debug output (Issue #1610)
Michael R Sweet [Fri, 12 Jun 2026 21:24:12 +0000 (17:24 -0400)]
Protect against bad JOB_PRINTER_URI variable (Issue #1611)
Michael R Sweet [Fri, 12 Jun 2026 21:18:05 +0000 (17:18 -0400)]
Protect against NULL variables (Issue #1611)
Michael R Sweet [Fri, 12 Jun 2026 21:00:18 +0000 (17:00 -0400)]
Fix cgiFormEncode error (Issue #1611)
Michael R Sweet [Fri, 12 Jun 2026 20:15:48 +0000 (16:15 -0400)]
Open temporary PPD files more securely.
Michael R Sweet [Fri, 12 Jun 2026 19:43:15 +0000 (15:43 -0400)]
Sanitizer destination-uri and pre-dial-string values.
Michael R Sweet [Fri, 12 Jun 2026 18:45:40 +0000 (14:45 -0400)]
Sanitize IPP attribute strings.
Michael R Sweet [Fri, 12 Jun 2026 15:56:07 +0000 (11:56 -0400)]
Use case insensitive comparisons since the PPD API does.
Zdenek Dohnal [Fri, 12 Jun 2026 07:18:36 +0000 (09:18 +0200)]
tls-gnutls.c: Fix type in debug message
StartTLS - > TLSStart
Michael R Sweet [Wed, 10 Jun 2026 22:27:59 +0000 (18:27 -0400)]
Make sure we have room for another space (Issue #1607)
Michael R Sweet [Wed, 10 Jun 2026 19:01:45 +0000 (15:01 -0400)]
Merge pull request #1605 from aizu-m/import-ppd-font-sscanf
bound Font attribute sscanf in import_ppd
jack [Wed, 10 Jun 2026 07:31:36 +0000 (15:31 +0800)]
Use ASCII strings in base zh_TW locale
jack [Wed, 10 Jun 2026 07:19:14 +0000 (15:19 +0800)]
Add base Traditional Chinese locale
aizu-m [Wed, 10 Jun 2026 06:18:34 +0000 (11:48 +0530)]
bound Font attribute sscanf in import_ppd
The four char[256] destinations were filled by width-less %s/%[ conversions, so a *Font value with a token over 255 bytes (reachable via a multi-line quoted version field) overflowed the stack. Cap each field at 255 chars.