]>
git.ipfire.org Git - thirdparty/cups.git/log
Zdenek Dohnal [Fri, 15 Sep 2023 07:42:03 +0000 (09:42 +0200)]
cups/http-addrlist.c: Fix lpstat hanging on Solaris
Fixes #156
Zdenek Dohnal [Wed, 13 Sep 2023 11:59:18 +0000 (13:59 +0200)]
backen/lpd.c: Fix port reserving behavior for RFC 1179
From master commit:
https://github.com/OpenPrinting/cups/commit/
9f0ce570117aa
Fixes #743
Zdenek Dohnal [Wed, 13 Sep 2023 08:36:02 +0000 (10:36 +0200)]
Merge fix from master regarding lpstat hanging
Master commit:
https://github.com/OpenPrinting/cups/commit/
3f763a960f3
Fixes #773
Zdenek Dohnal [Wed, 13 Sep 2023 07:52:13 +0000 (09:52 +0200)]
scheduler/job.c: Merge fix from master for extensive logging
Master commit:
https://github.com/OpenPrinting/cups/commit/
541f72d1cc1
Fixes #604
zdohnal [Fri, 8 Sep 2023 10:47:01 +0000 (12:47 +0200)]
Fix CI failures on MacOS and Windows
- Fix MD5 on MacOS
- Update libressl version to fix Windows failure in CI
Both originate from master commits:
https://github.com/OpenPrinting/cups/commit/
26836ad6312665091e5e47f547d2ff5e429ec031
https://github.com/OpenPrinting/cups/commit/
60e0f489172c88f6a67a887180d7395c4d8afe52
Zdenek Dohnal [Fri, 8 Sep 2023 08:41:10 +0000 (10:41 +0200)]
Try enable CodeQL on 2.4.x
Zdenek Dohnal [Fri, 8 Sep 2023 08:31:09 +0000 (10:31 +0200)]
Update libressl version to fix CI failure
Zdenek Dohnal [Fri, 8 Sep 2023 08:03:06 +0000 (10:03 +0200)]
Fix MD5 deps on MacOS
Zdenek Dohnal [Fri, 8 Sep 2023 06:55:59 +0000 (08:55 +0200)]
Try to enable Github Actions on 2.4.x branch
Zdenek Dohnal [Fri, 8 Sep 2023 04:59:29 +0000 (06:59 +0200)]
cups/hash.c: Merge the fix from master
Master commit:
https://github.com/OpenPrinting/cups/commit/
4db1ca0ea978f6
Fixes #762
Zdenek Dohnal [Mon, 4 Sep 2023 12:26:28 +0000 (14:26 +0200)]
Merge fix from master
Commit in master:
https://github.com/OpenPrinting/cups/commit/
b7a60b8c0357
Michael R Sweet [Wed, 2 Aug 2023 12:30:39 +0000 (08:30 -0400)]
Clean up changelog and normalize reporting of CVEs.
Michael R Sweet [Wed, 2 Aug 2023 12:26:59 +0000 (08:26 -0400)]
Fix a bug in the copy stack code (Issue #768)
Michael R Sweet [Tue, 11 Jul 2023 20:09:18 +0000 (16:09 -0400)]
Use ASN1_TIME_to_tm when converting X.509 date/time values.
Zdenek Dohnal [Tue, 27 Jun 2023 11:31:57 +0000 (13:31 +0200)]
Update CHANGES.md
Zdenek Dohnal [Tue, 27 Jun 2023 06:24:00 +0000 (08:24 +0200)]
Merge lpd fix from master branch
Zdenek Dohnal [Thu, 22 Jun 2023 10:57:32 +0000 (12:57 +0200)]
Prepare files for next release in the future
Zdenek Dohnal [Thu, 22 Jun 2023 10:17:14 +0000 (12:17 +0200)]
Update CHANGES.md
Zdenek Dohnal [Thu, 22 Jun 2023 10:11:51 +0000 (12:11 +0200)]
Fix use-after-free in cupsdAcceptClient() (fixes CVE-2023-34241)
Fix use-after-free when logging warnings in case of failures
in `cupsdAcceptClient()` (fixes CVE-2023-34241)
zdohnal [Wed, 21 Jun 2023 13:42:15 +0000 (15:42 +0200)]
Merge pull request #735 from AtariDreams/Fixer
Fix compilation on older macOS versions
Rose [Wed, 21 Jun 2023 13:24:04 +0000 (09:24 -0400)]
Fix compilation on older macOS versions
Older versions of macOS do not support SecTrustCopyCertificateChain, so let's revert back to using SecTrustGetCertificateCount.
Fixes https://github.com/OpenPrinting/cups/issues/715
zdohnal [Thu, 15 Jun 2023 07:04:46 +0000 (09:04 +0200)]
Merge pull request #730 from zdohnal/cupssinglefile_24x
cups/ppd-cache.c: Put cupsSingleFile into generated PPD
Zdenek Dohnal [Wed, 14 Jun 2023 08:14:38 +0000 (10:14 +0200)]
cups/ppd-cache.c: Put cupsSingleFile into generated PPD
Some printers are not able to print multiple files in one job via IPP
Everywhere. Adding the PPD keyword enables the feature on all printers
in exchange for performance degradation (there is a 1-2s pause between
printed files).
Fixes #643
Zdenek Dohnal [Tue, 13 Jun 2023 13:41:32 +0000 (15:41 +0200)]
Prepare files for next release
Zdenek Dohnal [Tue, 13 Jun 2023 13:00:48 +0000 (15:00 +0200)]
cups/cups.h: Update for 2.4.5
Zdenek Dohnal [Tue, 13 Jun 2023 12:56:50 +0000 (14:56 +0200)]
Finish hotfix release 2.4.5
Till Kamppeter [Mon, 12 Jun 2023 07:32:43 +0000 (09:32 +0200)]
Merge pull request #727 from AtariDreams/hotfix
Regression: Certificate data is corrupted during base64 conversion
Rose [Sun, 11 Jun 2023 20:09:53 +0000 (16:09 -0400)]
Regression: Certificate data is corrupted during base64 conversion
The bug during which certificates become corrupt was introduced in
a521b235a1abc008cb0b2f490a765bb31e2ec14b . It turns out some data was not being truncated after being promoted to an integer, causing 1s to be ORed into the index number when they should not have been.
I only intended to remove the & 255 from the other side, where the & 63 would have rendered that operation redundant.
I apologize for this error. I made the appropriate changes I intended to make in this new PR.
Please merge and make a new release if possible.
Thank you so much!
Zdenek Dohnal [Tue, 6 Jun 2023 13:28:10 +0000 (15:28 +0200)]
Prepare files for next release
Zdenek Dohnal [Tue, 6 Jun 2023 12:55:36 +0000 (14:55 +0200)]
Prepare for hotfix release 2.4.4
Zdenek Dohnal [Tue, 6 Jun 2023 12:38:02 +0000 (14:38 +0200)]
Merge fix for #719 into 2.4.x
Michael R Sweet [Fri, 2 Jun 2023 14:15:13 +0000 (10:15 -0400)]
Merge configure fix from master, bump version.
Zdenek Dohnal [Thu, 1 Jun 2023 15:55:29 +0000 (17:55 +0200)]
Update CHANGES.md for next release
Zdenek Dohnal [Thu, 1 Jun 2023 15:08:01 +0000 (17:08 +0200)]
Remove 2.4.4 from CHANGES.md for now
Zdenek Dohnal [Thu, 1 Jun 2023 15:05:54 +0000 (17:05 +0200)]
2.4.3
Michael R Sweet [Thu, 1 Jun 2023 14:08:55 +0000 (10:08 -0400)]
Merge pull request #711 from zdohnal/Plombo-printer-conf-strings
Save strings file path in printers.conf by Bryan Cain + feedback applied
Zdenek Dohnal [Thu, 1 Jun 2023 13:57:36 +0000 (15:57 +0200)]
printers.c: Set .strings file path if PPD cache is valid (fixes #710)
Michael R Sweet [Thu, 1 Jun 2023 13:42:22 +0000 (09:42 -0400)]
Update configure script.
Michael R Sweet [Thu, 1 Jun 2023 13:41:53 +0000 (09:41 -0400)]
Merge pull request #704 from l1gi/master
host_os_name value in config-scripts has changed to 'solaris'
Zdenek Dohnal [Thu, 1 Jun 2023 12:47:49 +0000 (14:47 +0200)]
CI: Fix i386 for now
Although Ubuntu is dropping support for i386, this PR fixes build i386
for now. However we have to remove image upgrade, so probably once there
is a new image, i386 will be broken again.
I would remove the job for i386 once it breaks again due removing
support for i386 in Ubuntu.
Martin Rehak [Thu, 1 Jun 2023 12:10:23 +0000 (14:10 +0200)]
host_os_name value in config-scripts has changed to 'solaris'
Martin Rehak [Fri, 26 May 2023 07:53:07 +0000 (09:53 +0200)]
host_os_name value in config-scripts has changed to 'solaris'
Zdenek Dohnal [Thu, 1 Jun 2023 10:11:38 +0000 (12:11 +0200)]
Update CHANGES.md
Zdenek Dohnal [Thu, 1 Jun 2023 10:04:00 +0000 (12:04 +0200)]
cups/string.c: Return if `size` is 0 (fixes CVE-2023-32324)
Zdenek Dohnal [Thu, 1 Jun 2023 08:45:25 +0000 (10:45 +0200)]
SECURITY.md: Use GitHub private advisories for reporting (fixes #703)
Zdenek Dohnal [Wed, 31 May 2023 12:51:02 +0000 (14:51 +0200)]
CHANGES.md: Add pull requests which fix noticeable bugs
Michael R Sweet [Tue, 30 May 2023 15:35:11 +0000 (11:35 -0400)]
Merge pull request #705 from zdohnal/fix_github_actions
workflows.yaml: Fix Github Actions and various fixes
Zdenek Dohnal [Tue, 30 May 2023 12:57:46 +0000 (14:57 +0200)]
workflows.yaml: Fix Github Actions on i386
- build i386 was failing due missing dependencies - libgcc-s1:i386 and
libstdc++6:i386
- use ubuntu-latest, so we automatically use the latest stable, but
print out the pretty name in workflow to show which version it is
(dont wanna to look up the names :))
- update the image before testing
Michael R Sweet [Sun, 28 May 2023 15:15:19 +0000 (11:15 -0400)]
Merge pull request #709 from nmuggli/media-col-database-custom-size
Add custom page size values to media-col-database
Nathan Muggli [Fri, 26 May 2023 18:36:45 +0000 (12:36 -0600)]
Add custom page size values to media-col-database
When creating the IPP attrs based on the PPD file, if the PPD file
supports custom page sizes update our media-col-database to contain a
media-size attr with the min/max range.
Martin Rehak [Fri, 26 May 2023 07:53:07 +0000 (09:53 +0200)]
Merge branch 'master' of https://github.com/l1gi/cups
Martin Rehak [Thu, 18 May 2023 13:48:43 +0000 (15:48 +0200)]
host_os_name value in config-scripts has changed to 'solaris' some time ago
zdohnal [Thu, 25 May 2023 14:52:53 +0000 (16:52 +0200)]
Merge pull request #461 from zdohnal/color_override_correction
backend/ipp.c: Adjust job options with similar meaning to the same values
Zdenek Dohnal [Mon, 22 May 2023 15:52:43 +0000 (17:52 +0200)]
backend/ipp.c: Adjust color job options
In case the client doesn't do it, we have to consolidate color options
in the job to prevent opposite options being set at the same time.
Michael R Sweet [Wed, 24 May 2023 18:21:50 +0000 (14:21 -0400)]
Merge pull request #688 from Plombo/media-type-no-duplicate-names
Fix duplicate PPD->IPP media-type name mappings
Bryan Cain [Fri, 12 May 2023 17:23:24 +0000 (11:23 -0600)]
Fix duplicate PPD->IPP media-type name mappings
If more than one MediaType in a PPD matched the pattern for a registered
PWG media-type name, they would all be mapped to that name, making it
impossible for a client using CUPS' IPP interface to distinguish between
them or specify a particular one.
This comes up with Epson-provided PPDs, which frequently hit this case
by combining print quality with media type like so:
*MediaType PLAIN_HIGH/Plain paper-High: "
*MediaType PLAIN_NORMAL/Plain paper-Standard: "
Solve this problem by not assigning the standard PWG name to either one
when such duplication occurs.
Michael R Sweet [Fri, 19 May 2023 14:58:43 +0000 (10:58 -0400)]
Merge pull request #706 from meshantz/delay-defaults-docs
Document default repeat interval
Mike Shantz [Fri, 19 May 2023 14:41:48 +0000 (10:41 -0400)]
Document default repeat interval
Michael R Sweet [Thu, 18 May 2023 20:47:17 +0000 (16:47 -0400)]
Potential fix for Kyocera driver bug (Issue #619)
Martin Rehak [Thu, 18 May 2023 13:48:43 +0000 (15:48 +0200)]
host_os_name value in config-scripts has changed to 'solaris' some time ago
Michael R Sweet [Sat, 13 May 2023 21:38:26 +0000 (17:38 -0400)]
Merge pull request #692 from AtariDreams/inverse-check
Check that the number of trays is consistent before fetching anymore data
Michael R Sweet [Sat, 13 May 2023 21:36:43 +0000 (17:36 -0400)]
Merge pull request #695 from ggodlewski/master
Fix ipptool JSON output
Rose [Sat, 13 May 2023 19:14:34 +0000 (15:14 -0400)]
Check that the number of trays is consistent before fetching anymore data
There is no point in getting this data otherwise if the number of sources defined for the media_sources and for the input_tray differ.
Grzegorz Godlewski [Sat, 13 May 2023 21:04:21 +0000 (23:04 +0200)]
Fix ipptool JSON output
Michael R Sweet [Sat, 13 May 2023 20:38:28 +0000 (16:38 -0400)]
Merge pull request #591 from AtariDreams/XOR-3
Use XOR for integers that are always 1 or 0
Rose [Fri, 20 Jan 2023 18:23:45 +0000 (13:23 -0500)]
Use XOR for integers that are always 1 or 0
This is more efficient than using the ! operator on older platforms.
Michael R Sweet [Fri, 12 May 2023 18:11:37 +0000 (14:11 -0400)]
Merge pull request #655 from AtariDreams/What-We-Learned
Free memory leaked by Darwin's Core Foundation
Rose [Wed, 19 Apr 2023 17:07:38 +0000 (13:07 -0400)]
Free memory leaked by Darwin's Core Foundation
There are cases where we do not always free the CF objects we allocate, causing them to leak.
Michael R Sweet [Fri, 12 May 2023 15:44:25 +0000 (11:44 -0400)]
Merge pull request #686 from AtariDreams/print_ptr
Use print_ptr instead of print_buffer
Michael R Sweet [Fri, 12 May 2023 15:42:38 +0000 (11:42 -0400)]
Merge pull request #684 from AtariDreams/wordlen
Wordlen should be a size_t, not an int
Rose [Thu, 11 May 2023 17:47:09 +0000 (13:47 -0400)]
Wordlen should be a size_t, not an int
text is always more than or equal to ptr, so it will never underflow.
Rose [Thu, 11 May 2023 20:19:32 +0000 (16:19 -0400)]
Use print_ptr instead of print_buffer
It was forgotten about, making the whole bytes addition useless.
Michael R Sweet [Fri, 12 May 2023 15:33:36 +0000 (11:33 -0400)]
Merge pull request #687 from davebarkerxyz/fix-persist-color-mode
Fix check for existing color mode setting
Dave Barker [Fri, 12 May 2023 09:39:52 +0000 (10:39 +0100)]
Fix check for existing color mode setting
Colour mode selection is not persisted correctly across restarts. Current check is for "printer-color-mode", but every other reference to this option is "print-color-mode" (no "er"). This was causing the selected colour mode to be reset to the PPD default on restart.
Michael R Sweet [Wed, 10 May 2023 19:43:12 +0000 (15:43 -0400)]
Update copyright.
Michael R Sweet [Wed, 10 May 2023 19:41:14 +0000 (15:41 -0400)]
Remove unused variable.
Michael R Sweet [Wed, 10 May 2023 19:33:23 +0000 (15:33 -0400)]
Fix an integer overflow issue in the PWG media size name code (Issue #668)
Michael R Sweet [Wed, 10 May 2023 18:43:52 +0000 (14:43 -0400)]
Merge pull request #656 from AtariDreams/u
Use %u for unsigned, not signed
Rose [Wed, 19 Apr 2023 18:12:13 +0000 (14:12 -0400)]
Use %u for unsigned, not signed
Michael R Sweet [Sat, 6 May 2023 13:18:13 +0000 (09:18 -0400)]
Merge pull request #590 from AtariDreams/memory
Improve state handling in cases of memory allocation failure
Rose [Fri, 20 Jan 2023 17:47:21 +0000 (12:47 -0500)]
Improve state handling in cases of memory allocation failure
Many lines of code assume that malloc will not fail. In cases where it does, sometimes the program does not know, and as a result, memory can leak and more disastrous consequences can happen before the program ultimately finds something is wrong and then calls exit();
Michael R Sweet [Mon, 1 May 2023 23:18:14 +0000 (19:18 -0400)]
Merge pull request #642 from zdohnal/raise_fortify
configure: Raise FORTIFY_SOURCE level to 3
Michael R Sweet [Mon, 1 May 2023 22:46:03 +0000 (18:46 -0400)]
Drop Codacy code scanning.
Michael R Sweet [Mon, 1 May 2023 18:20:45 +0000 (14:20 -0400)]
Merge pull request #659 from AtariDreams/strncmp
Cast to unsigned long instead of long for size_t
Rose [Thu, 20 Apr 2023 17:31:34 +0000 (13:31 -0400)]
Cast to unsigned long instead of long for size_t
size_t is unsigned, so let's not worry about signedness.
Michael R Sweet [Mon, 1 May 2023 11:54:55 +0000 (07:54 -0400)]
Merge pull request #669 from AtariDreams/fields
UBSan: Array over-read when operating on _fields
Zdenek Dohnal [Fri, 28 Apr 2023 08:00:27 +0000 (10:00 +0200)]
configure: Use _FORTIFY_SOURCE if not defined already
If _FORTIFY_SOURCE is not defined in flags, use its level 3.
Backported from libcups.
Rose [Sun, 23 Apr 2023 17:09:50 +0000 (13:09 -0400)]
UBSan: Array over-read when operating on _fields
We are reading outside of the _fields boundaries and onto other fields when we iterate across all the fields, rather than comparing just those that are within _fields, and then always freeing the ones that are not.
This PR fixes that.
Michael R Sweet [Tue, 25 Apr 2023 20:49:14 +0000 (16:49 -0400)]
Merge pull request #670 from AtariDreams/pos-fp
UBSan: Contain pos - fp->bufpos in parentheses
Rose [Sun, 23 Apr 2023 16:25:39 +0000 (12:25 -0400)]
UBSan: Contain pos - fp->bufpos in parentheses
Yes I know this shouldn't change the behavior in theory, but clang insists it does in practice, so to quiet the UBSan, I put parentheses around pos - fp->bufpos.
Michael R Sweet [Tue, 25 Apr 2023 11:34:20 +0000 (07:34 -0400)]
Fix coverity-detected typo.
Michael R Sweet [Sun, 23 Apr 2023 21:44:33 +0000 (17:44 -0400)]
Fix build errors.
Michael R Sweet [Sat, 22 Apr 2023 03:46:06 +0000 (23:46 -0400)]
Fix a few Coverity-reported issues.
Zdenek Dohnal [Thu, 20 Apr 2023 07:39:42 +0000 (09:39 +0200)]
filter/pstops.c: Fix incorrect comparison size for %%PageResources
Fixes #658
Michael R Sweet [Thu, 13 Apr 2023 15:22:51 +0000 (11:22 -0400)]
Clean up OpenSSL fixes and changelog (Issue #652)
Zdenek Dohnal [Thu, 13 Apr 2023 08:31:58 +0000 (10:31 +0200)]
cups/tls-openssl.c: Use general names in certificates (fixes #652)
This results into having only one Subject Alternative Name extension,
which fixes SEC_ERROR_EXTENSION_VALUE_INVALID in Firefox.
Zdenek Dohnal [Mon, 27 Mar 2023 14:50:34 +0000 (16:50 +0200)]
REPORTING_ISSUES.md: Make the file more readable
Michael R Sweet [Sat, 4 Mar 2023 18:43:36 +0000 (13:43 -0500)]
Merge pull request #617 from AtariDreams/cupsMakeServerCredentials
cupsMakeServerCredentials should return 0 on failure, 1 on success
Michael R Sweet [Sat, 4 Mar 2023 18:35:39 +0000 (13:35 -0500)]
Merge pull request #632 from AtariDreams/apple
Prefer atof over strtod
Rose [Sun, 19 Feb 2023 16:27:27 +0000 (11:27 -0500)]
cupsMakeServerCredentials should return 0 on failure, 1 on success
Currently, it returns -1 on error it seems, which is not how the function is documented to work.