]> git.ipfire.org Git - thirdparty/cups.git/log
thirdparty/cups.git
15 months agoscheduler: Fix regression in background thread (Issue #934) 937/head
Andreas Karlson [Wed, 10 Apr 2024 12:44:22 +0000 (14:44 +0200)] 
scheduler: Fix regression in background thread (Issue #934)

The con->bg_pending value is used to indicate that the background thread
has finished running and that the connection can be safely closed.

This commit makes the con->bg_pending = 0 only after the connection
can be safely closed.

15 months agoscheduler: Fix potential bug when adding new printers (Issue #934) 935/head
Andreas Karlson [Tue, 9 Apr 2024 13:14:22 +0000 (15:14 +0200)] 
scheduler: Fix potential bug when adding new printers (Issue #934)

When adding a new printer a thread is created to handle PPD generation,
and the requesting client connection might close while the thread is running.
This commit prevents full connection cleanup until the thread is finished.

16 months agoReport an error if you use lpadmin to set defaults for a temporary queue (Issue ...
Michael R Sweet [Fri, 5 Apr 2024 21:27:23 +0000 (17:27 -0400)] 
Report an error if you use lpadmin to set defaults for a temporary queue (Issue #237)

16 months agoFix document-unprintable-error support (Issue #391)
Michael R Sweet [Fri, 5 Apr 2024 20:44:33 +0000 (16:44 -0400)] 
Fix document-unprintable-error support (Issue #391)

16 months agoFix cupsCopyDestInfo device connection detection (Issue #586)
Michael R Sweet [Fri, 5 Apr 2024 16:54:18 +0000 (12:54 -0400)] 
Fix cupsCopyDestInfo device connection detection (Issue #586)

16 months agoFix Upgrade header handling when there is no TLS support (Issue #775)
Michael R Sweet [Fri, 5 Apr 2024 13:05:47 +0000 (09:05 -0400)] 
Fix Upgrade header handling when there is no TLS support (Issue #775)

16 months agoAllow PPD choices and PWG keywords to select media (Issue #238)
Michael R Sweet [Fri, 5 Apr 2024 12:47:03 +0000 (08:47 -0400)] 
Allow PPD choices and PWG keywords to select media (Issue #238)

16 months agoscheduler: Fix sending response headers to client
Zdenek Dohnal [Fri, 5 Apr 2024 08:46:22 +0000 (10:46 +0200)] 
scheduler: Fix sending response headers to client

Sometimes headers are not correctly copied into response to the client (some are missing). It happens because sent_header is set prematurely before the actual send happens. The present code in affected cupsdWriteClient() scope looks like code remains from CUPS 1.6.3, where cupsdSendHeader() is called earlier and generates the required headers by itself - the current cupsdSendHeader() sends only the headers which are saved in array fields, so the premature setting of sent_header sometimes causes not having all headers in the response.

With the change, testing via curl gives reliable results all time.

16 months agoResolve CI issue on macOS.
Michael R Sweet [Thu, 4 Apr 2024 20:30:31 +0000 (16:30 -0400)] 
Resolve CI issue on macOS.

16 months agoUpdate CUPS-Add-Modify-Printer and CUPS-Create-Local-Printer code to delay responding...
Michael R Sweet [Thu, 4 Apr 2024 20:25:25 +0000 (16:25 -0400)] 
Update CUPS-Add-Modify-Printer and CUPS-Create-Local-Printer code to delay responding until the PPD is successfully generated (Issue #347)

16 months agoFix backported changes for race condition.
Michael R Sweet [Thu, 4 Apr 2024 16:12:05 +0000 (12:12 -0400)] 
Fix backported changes for race condition.

16 months agoMirror fix from master/2.5 for potential race condition with CUPS-Create-Local-Printe...
Michael R Sweet [Thu, 4 Apr 2024 16:06:19 +0000 (12:06 -0400)] 
Mirror fix from master/2.5 for potential race condition with CUPS-Create-Local-Printer (Issue #871)

16 months agoFix httpGets timeout handling (Issue #879)
Michael R Sweet [Tue, 2 Apr 2024 15:20:06 +0000 (11:20 -0400)] 
Fix httpGets timeout handling (Issue #879)

16 months agoFix the initialization and validation of checkbox and text fields in CGI forms.
Michael R Sweet [Tue, 2 Apr 2024 12:43:49 +0000 (08:43 -0400)] 
Fix the initialization and validation of checkbox and text fields in CGI forms.

16 months agocups/ipp.c: Use strcmp, since attribute names are case sensitive
Zdenek Dohnal [Fri, 22 Mar 2024 05:27:42 +0000 (06:27 +0100)] 
cups/ipp.c: Use strcmp, since attribute names are case sensitive

17 months agoFix IPv6 address encoding in the Host: header (Issue #903)
Michael R Sweet [Fri, 1 Mar 2024 16:55:39 +0000 (11:55 -0500)] 
Fix IPv6 address encoding in the Host: header (Issue #903)

17 months agoppd-cache.c: Check for required attributes if URF or PWG Raster are found
Zdenek Dohnal [Thu, 15 Feb 2024 17:15:55 +0000 (18:15 +0100)] 
ppd-cache.c: Check for required attributes if URF or PWG Raster are found

Some devices have image/urf in document-format-supported, but is missing urf-supported
if AirPrint support is turned off, which breaks PPD generation. Check for attribute
urf-supported when we are about to decide whether the printer uses AirPrint, so in case
the device supports another driverless standard, we can use it for PPD generation.
Apply the same for PWG Raster too.

Fixes Fedora issue #2263053

17 months agoUse PAM password-auth or system-auth if present
Zdenek Dohnal [Wed, 14 Feb 2024 13:22:40 +0000 (14:22 +0100)] 
Use PAM password-auth or system-auth if present

Enables possibility to use PAM modules password-auth or system-auth
if they exist during compilation. password-auth module is
for remote authentication and system-auth for local authentication.

17 months agoReturn HTTP status 404 for non-existing classes and printers (Issue #423)
Michael R Sweet [Sun, 11 Feb 2024 14:23:13 +0000 (09:23 -0500)] 
Return HTTP status 404 for non-existing classes and printers (Issue #423)

17 months agoMerge pull request #888 from alexpevzner/pzz-2.4.x-fix-warnings
Alexander Pevzner [Fri, 9 Feb 2024 04:31:54 +0000 (07:31 +0300)] 
Merge pull request #888 from alexpevzner/pzz-2.4.x-fix-warnings

Fixed a couple of gcc warnings

17 months agoFixed gcc warning 888/head
Alexander Pevzner [Thu, 8 Feb 2024 08:49:02 +0000 (11:49 +0300)] 
Fixed gcc warning

In cups/dest.c:

    dest.c:1830:21: warning: ā€˜%s’ directive argument is null [-Wformat-overflow=]
     1733 |       DEBUG_printf(("1cupsGetNamedDest: Using name=\"%s\"...", name));
  |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This is really true, and gcc was smart enough to deduct it from context.
Obviously, we meant to print dest_name here.

17 months agoFix Oki 407 freeze when printing larger jobs
Zdenek Dohnal [Thu, 8 Feb 2024 09:00:37 +0000 (10:00 +0100)] 
Fix Oki 407 freeze when printing larger jobs

18 months agobackend/ipp.c: Fix printing jobs with long names on older IPP printers
Zdenek Dohnal [Tue, 16 Jan 2024 12:30:17 +0000 (13:30 +0100)] 
backend/ipp.c: Fix printing jobs with long names on older IPP printers

On older printers (ones which don't support IPP operation Create-Job)
we concatenate job number and title into one string, which we use as
IPP attribute job-name. If the original title was almost 255 chars,
the joining the strings will overflow maximal required length
for this attribute, and Validate-Job fails.

We could check whether the string is longer than 255 and cut it,
but I chose to shrink the buffer to 256, since we already use snprintf()
which will cut the string and put null terminator for us.

Fixes #644

18 months agobackend/ipp.c: Fix infinite loop with Kerberos
Zdenek Dohnal [Mon, 15 Jan 2024 15:09:19 +0000 (16:09 +0100)] 
backend/ipp.c: Fix infinite loop with Kerberos

If IP address was used with Kerberos, IPP backend retried connection
indefinitely. The fix is to abort when we find out hostname is an IP
address and we require Kerberos.

18 months agoMerge fix for #859 from master
Zdenek Dohnal [Mon, 15 Jan 2024 13:14:08 +0000 (14:14 +0100)] 
Merge fix for #859 from master

18 months agoBackport fix for crash in ppdEmitString()
Zdenek Dohnal [Fri, 12 Jan 2024 10:05:17 +0000 (11:05 +0100)] 
Backport fix for crash in ppdEmitString()

18 months agoAdd/update copyrights
Zdenek Dohnal [Fri, 12 Jan 2024 09:47:08 +0000 (10:47 +0100)] 
Add/update copyrights

18 months agobackend/ipp: Fix print-scaling option support for IPP printers
Zdenek Dohnal [Fri, 12 Jan 2024 05:55:31 +0000 (06:55 +0100)] 
backend/ipp: Fix print-scaling option support for IPP printers

Fixes #862

19 months agohttpAddrConnect2: Check for error if POLLHUP is in valid revents
Zdenek Dohnal [Fri, 15 Dec 2023 09:59:54 +0000 (10:59 +0100)] 
httpAddrConnect2: Check for error if POLLHUP is in valid revents

Some Linux kernel versions put POLLOUT|POLLHUP into revents when client tries to connect with httpAddrConnect2(), which makes the connection fail.
Let's check the option SO_ERROR before scratching the attempt - if there is no error, remove POLLHUP from revents.

I've re-purposed previously Solaris-only code to be used everywhere if the conditions are met - this should prevent bigger delays than necessary.

Slightly different issue than #827, but with similar symptoms (kernel sending POLLOUT|POLLHUP).

20 months agoscheduler: Fix build failure on Linux with '-Werror -Wall'
Zdenek Dohnal [Wed, 29 Nov 2023 14:10:45 +0000 (15:10 +0100)] 
scheduler: Fix build failure on Linux with '-Werror -Wall'

The string which we add into array stays `const` after fixing #814
(because `strdup()`, which caused memory leak returned `char *`)
and compiler fails because of it if it runs with '-Werror -Wall'.

20 months agoscheduler: Set reasons in cupsdSetJobState only if we call finalize_job later
Zdenek Dohnal [Mon, 27 Nov 2023 11:59:18 +0000 (12:59 +0100)] 
scheduler: Set reasons in cupsdSetJobState only if we call finalize_job later

Before the fix, every successfully printed jobs ended up with
'processing-to-stop-point' as the last reasons message.

Final fix for #828 .

20 months agoraster-interpreter.c: Fix crash in 'scan_ps()' found by fuzzer
Zdenek Dohnal [Mon, 27 Nov 2023 09:16:01 +0000 (10:16 +0100)] 
raster-interpreter.c: Fix crash in 'scan_ps()' found by fuzzer

Fuzzer using `_cupsRasterExecPS()` found a way how to pass NULL into
`scan_ps()`, causing crash - we have to sanitize the argument for NULL
to fix it.

Fixes #831

20 months agoMerge fix for #829
Zdenek Dohnal [Fri, 24 Nov 2023 07:00:09 +0000 (08:00 +0100)] 
Merge fix for #829

20 months agolpstat: Implemenet successful filter for jobs
Zdenek Dohnal [Fri, 24 Nov 2023 06:42:05 +0000 (07:42 +0100)] 
lpstat: Implemenet successful filter for jobs

20 months agoscheduler/colorman.c: Fix memory leak during creating color profile
zdohnal [Fri, 24 Nov 2023 05:08:17 +0000 (06:08 +0100)] 
scheduler/colorman.c: Fix memory leak during creating color profile

Since the array profiles is set to use strdup() as a copy function, we
don't have to use strdup() on the element which is passed as parameter
of cupsArrayAdd() - using the strdup() as we used till now causes
memory leak.

Reproducer is the same as #813

20 months agoMerge branch '2.4.x' into colorman-leak-2-4 815/head
zdohnal [Thu, 16 Nov 2023 07:40:39 +0000 (08:40 +0100)] 
Merge branch '2.4.x' into colorman-leak-2-4

21 months agoMerge pull request #805 from alexpevzner/2.4.x
Alexander Pevzner [Tue, 7 Nov 2023 13:55:34 +0000 (16:55 +0300)] 
Merge pull request #805 from alexpevzner/2.4.x

cups/ppd-cache.c: Add cupsUrfSupported to generated PPD (see #804)

21 months ago scheduler/job.c: unload job before freeing job history in cupsdDeleteJob()
Zdenek Dohnal [Mon, 30 Oct 2023 10:34:55 +0000 (11:34 +0100)] 
 scheduler/job.c: unload job before freeing job history in cupsdDeleteJob()

With "PreserveJobHistory Off", LogLevel not set to debug (or debug2),
and "LogDebugHistory 200" (the default), cupsdDeleteJob() frees the
job history and then unloads the job.  However, unload_job() calls
cupsdLogJob() which re-creates the job history and puts "Unloading..."
into it because level (debug) is greater than LogLevel (warn) and
LogDebugHistory is set to 200 messages by default.  Unused (and
unreachable) job history is left behind, resulting in a memory leak.

21 months agoscheduler/colorman.c: Fix memory leak during creating color profile
Zdenek Dohnal [Mon, 30 Oct 2023 09:49:14 +0000 (10:49 +0100)] 
scheduler/colorman.c: Fix memory leak during creating color profile

 Since the array `profiles` is set to use `strdup()` as a copy function, we
 don't have to use `strdup()` on the element which is passed as parameter
 of `cupsArrayAdd()` - using the `strdup()` as we used till now causes
 memory leak.

 Reproducer is the same as https://github.com/OpenPrinting/cups/pull/813

21 months agocups/dest.c: Merge fix for #751 into 2.4
zdohnal [Wed, 25 Oct 2023 06:09:20 +0000 (08:09 +0200)] 
cups/dest.c: Merge fix for #751 into 2.4

The relevant master commit https://github.com/OpenPrinting/cups/commit/082c5ae12a

21 months agocups/dest.c: Merge fix for #751 into 2.4 807/head
Zdenek Dohnal [Mon, 23 Oct 2023 07:51:48 +0000 (09:51 +0200)] 
cups/dest.c: Merge fix for #751 into 2.4

21 months agocups/ppd-cache.c: Add cupsUrfSupported to generated PPD (see #804) 805/head
Alexander Pevzner [Sun, 22 Oct 2023 19:07:20 +0000 (22:07 +0300)] 
cups/ppd-cache.c: Add cupsUrfSupported to generated PPD (see #804)

It fixes driverless printing on Pantum BM5100ADW Series and, probably,
on many other devices.

- Without this parameter, /usr/lib/cups/filter/universal generates RGB
image/urf even for monochrome printer
- Pantum BM5100ADW Series rejects to print these RGB images with
the "Print job canceled at printer" status.
- Probably, this issue affects many other devices

See #804 for details.

22 months agocups/hash.c: Put support for MacOS/Win SSL libs back
zdohnal [Wed, 4 Oct 2023 07:29:20 +0000 (09:29 +0200)] 
cups/hash.c: Put support for MacOS/Win SSL libs back

- I mustn't remove their support in patch release - this should happen in 2.5 only.
- I have put back support for several hashes as well - they should be removed in 2.5.
- restrict usage of second block hashing only if OpenSSL/LibreSSL/GnuTLS is available (since IMO I found its implementation useless for SSL libs, which will be removed in 2.5)

This removes hard dependency on OpenSSL/LibreSSL or GnuTLS in 2.4.x, which will happen in 2.5.

22 months agocups/hash.c: LibreSSL version does not support several hashes 794/head
Zdenek Dohnal [Tue, 3 Oct 2023 12:39:33 +0000 (14:39 +0200)] 
cups/hash.c: LibreSSL version does not support several hashes

22 months agocups/hash.c: Put support for MacOS/Win SSL libs back
Zdenek Dohnal [Tue, 3 Oct 2023 11:59:40 +0000 (13:59 +0200)] 
cups/hash.c: Put support for MacOS/Win SSL libs back

- I mustn't remove their support in patch release - this should happen in
2.5 only.
- I have put back support for several hashes as well - they
should be removed in 2.5.
- restrict usage of second block hashing only if OpenSSL/LibreSSL/GnuTLS
  is available

22 months agoPrepare files for possible next release
Zdenek Dohnal [Wed, 20 Sep 2023 14:29:37 +0000 (16:29 +0200)] 
Prepare files for possible next release

22 months agosystemv/cancel.c: Merge fix from master
Zdenek Dohnal [Wed, 20 Sep 2023 14:20:45 +0000 (16:20 +0200)] 
systemv/cancel.c: Merge fix from master

Master commit:
https://github.com/OpenPrinting/cups/commit/c5ad7aa

22 months agoPrepare release 2.4.7 v2.4.7
Zdenek Dohnal [Wed, 20 Sep 2023 13:25:54 +0000 (15:25 +0200)] 
Prepare release 2.4.7

22 months agoraster-interpret.c: Fix CVE-2023-4504
Zdenek Dohnal [Wed, 20 Sep 2023 12:45:17 +0000 (14:45 +0200)] 
raster-interpret.c: Fix CVE-2023-4504

We didn't check for end of buffer if it looks there is an escaped
character - check for NULL terminator there and if found, return NULL
as return value and in `ptr`, because a lone backslash is not
a valid PostScript character.

22 months agocups/http-addrlist.c: Fix lpstat hanging on Solaris
zdohnal [Fri, 15 Sep 2023 12:24:19 +0000 (14:24 +0200)] 
cups/http-addrlist.c: Fix lpstat hanging on Solaris

Fixes #156

22 months agocups/http-addrlist.c: Fix lpstat hanging on Solaris 789/head
Zdenek Dohnal [Fri, 15 Sep 2023 07:42:03 +0000 (09:42 +0200)] 
cups/http-addrlist.c: Fix lpstat hanging on Solaris

Fixes #156

22 months agobacken/lpd.c: Fix port reserving behavior for RFC 1179
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

22 months agoMerge fix from master regarding lpstat hanging
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

22 months agoscheduler/job.c: Merge fix from master for extensive logging
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

22 months agoFix CI failures on MacOS and Windows
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

22 months agoTry enable CodeQL on 2.4.x
Zdenek Dohnal [Fri, 8 Sep 2023 08:41:10 +0000 (10:41 +0200)] 
Try enable CodeQL on 2.4.x

22 months agoUpdate libressl version to fix CI failure 786/head
Zdenek Dohnal [Fri, 8 Sep 2023 08:31:09 +0000 (10:31 +0200)] 
Update libressl version to fix CI failure

22 months agoFix MD5 deps on MacOS
Zdenek Dohnal [Fri, 8 Sep 2023 08:03:06 +0000 (10:03 +0200)] 
Fix MD5 deps on MacOS

22 months agoTry to enable Github Actions on 2.4.x branch
Zdenek Dohnal [Fri, 8 Sep 2023 06:55:59 +0000 (08:55 +0200)] 
Try to enable Github Actions on 2.4.x branch

22 months agocups/hash.c: Merge the fix from master
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

23 months agoMerge fix from master
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

2 years agoClean up changelog and normalize reporting of CVEs.
Michael R Sweet [Wed, 2 Aug 2023 12:30:39 +0000 (08:30 -0400)] 
Clean up changelog and normalize reporting of CVEs.

2 years agoFix a bug in the copy stack code (Issue #768)
Michael R Sweet [Wed, 2 Aug 2023 12:26:59 +0000 (08:26 -0400)] 
Fix a bug in the copy stack code (Issue #768)

2 years agoUse ASN1_TIME_to_tm when converting X.509 date/time values.
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.

2 years agoUpdate CHANGES.md
Zdenek Dohnal [Tue, 27 Jun 2023 11:31:57 +0000 (13:31 +0200)] 
Update CHANGES.md

2 years agoMerge lpd fix from master branch
Zdenek Dohnal [Tue, 27 Jun 2023 06:24:00 +0000 (08:24 +0200)] 
Merge lpd fix from master branch

2 years agoPrepare files for next release in the future
Zdenek Dohnal [Thu, 22 Jun 2023 10:57:32 +0000 (12:57 +0200)] 
Prepare files for next release in the future

2 years agoUpdate CHANGES.md v2.4.6
Zdenek Dohnal [Thu, 22 Jun 2023 10:17:14 +0000 (12:17 +0200)] 
Update CHANGES.md

2 years agoFix use-after-free in cupsdAcceptClient() (fixes CVE-2023-34241)
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)

2 years agoMerge pull request #735 from AtariDreams/Fixer
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

2 years agoFix compilation on older macOS versions 735/head
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

2 years agoMerge pull request #730 from zdohnal/cupssinglefile_24x
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

2 years ago cups/ppd-cache.c: Put cupsSingleFile into generated PPD 730/head
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

2 years agoPrepare files for next release
Zdenek Dohnal [Tue, 13 Jun 2023 13:41:32 +0000 (15:41 +0200)] 
Prepare files for next release

2 years agocups/cups.h: Update for 2.4.5 v2.4.5
Zdenek Dohnal [Tue, 13 Jun 2023 13:00:48 +0000 (15:00 +0200)] 
cups/cups.h: Update for 2.4.5

2 years agoFinish hotfix release 2.4.5
Zdenek Dohnal [Tue, 13 Jun 2023 12:56:50 +0000 (14:56 +0200)] 
Finish hotfix release 2.4.5

2 years agoMerge pull request #727 from AtariDreams/hotfix
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

2 years agoRegression: Certificate data is corrupted during base64 conversion 727/head
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!

2 years agoPrepare files for next release
Zdenek Dohnal [Tue, 6 Jun 2023 13:28:10 +0000 (15:28 +0200)] 
Prepare files for next release

2 years agoPrepare for hotfix release 2.4.4 v2.4.4
Zdenek Dohnal [Tue, 6 Jun 2023 12:55:36 +0000 (14:55 +0200)] 
Prepare for hotfix release 2.4.4

2 years agoMerge fix for #719 into 2.4.x
Zdenek Dohnal [Tue, 6 Jun 2023 12:38:02 +0000 (14:38 +0200)] 
Merge fix for #719 into 2.4.x

2 years agoMerge configure fix from master, bump version.
Michael R Sweet [Fri, 2 Jun 2023 14:15:13 +0000 (10:15 -0400)] 
Merge configure fix from master, bump version.

2 years agoUpdate CHANGES.md for next release
Zdenek Dohnal [Thu, 1 Jun 2023 15:55:29 +0000 (17:55 +0200)] 
Update CHANGES.md for next release

2 years agoRemove 2.4.4 from CHANGES.md for now v2.4.3
Zdenek Dohnal [Thu, 1 Jun 2023 15:08:01 +0000 (17:08 +0200)] 
Remove 2.4.4 from CHANGES.md for now

2 years ago2.4.3
Zdenek Dohnal [Thu, 1 Jun 2023 15:05:54 +0000 (17:05 +0200)] 
2.4.3

2 years agoMerge pull request #711 from zdohnal/Plombo-printer-conf-strings
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

2 years agoprinters.c: Set .strings file path if PPD cache is valid (fixes #710) 711/head
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)

2 years agoUpdate configure script.
Michael R Sweet [Thu, 1 Jun 2023 13:42:22 +0000 (09:42 -0400)] 
Update configure script.

2 years agoMerge pull request #704 from l1gi/master
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'

2 years agoCI: Fix i386 for now
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.

2 years agohost_os_name value in config-scripts has changed to 'solaris' 704/head
Martin Rehak [Thu, 1 Jun 2023 12:10:23 +0000 (14:10 +0200)] 
host_os_name value in config-scripts has changed to 'solaris'

2 years agohost_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'

2 years agoUpdate CHANGES.md
Zdenek Dohnal [Thu, 1 Jun 2023 10:11:38 +0000 (12:11 +0200)] 
Update CHANGES.md

2 years agocups/string.c: Return if `size` is 0 (fixes CVE-2023-32324)
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)

2 years agoSECURITY.md: Use GitHub private advisories for reporting (fixes #703)
Zdenek Dohnal [Thu, 1 Jun 2023 08:45:25 +0000 (10:45 +0200)] 
SECURITY.md: Use GitHub private advisories for reporting (fixes #703)

2 years agoCHANGES.md: Add pull requests which fix noticeable bugs
Zdenek Dohnal [Wed, 31 May 2023 12:51:02 +0000 (14:51 +0200)] 
CHANGES.md: Add pull requests which fix noticeable bugs

2 years agoMerge pull request #705 from zdohnal/fix_github_actions
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

2 years agoworkflows.yaml: Fix Github Actions on i386 705/head
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

2 years agoMerge pull request #709 from nmuggli/media-col-database-custom-size
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

2 years agoAdd custom page size values to media-col-database 709/head
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.