]> git.ipfire.org Git - thirdparty/cups.git/log
thirdparty/cups.git
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.

2 years agoMerge branch 'master' of https://github.com/l1gi/cups
Martin Rehak [Fri, 26 May 2023 07:53:07 +0000 (09:53 +0200)] 
Merge branch 'master' of https://github.com/l1gi/cups

2 years agohost_os_name value in config-scripts has changed to 'solaris' some time ago
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

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

2 years agobackend/ipp.c: Adjust color job options 461/head
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.

2 years agoMerge pull request #688 from Plombo/media-type-no-duplicate-names
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

2 years agoFix duplicate PPD->IPP media-type name mappings 688/head
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.

2 years agoMerge pull request #706 from meshantz/delay-defaults-docs
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

2 years agoDocument default repeat interval 706/head
Mike Shantz [Fri, 19 May 2023 14:41:48 +0000 (10:41 -0400)] 
Document default repeat interval

2 years agoPotential fix for Kyocera driver bug (Issue #619)
Michael R Sweet [Thu, 18 May 2023 20:47:17 +0000 (16:47 -0400)] 
Potential fix for Kyocera driver bug (Issue #619)

2 years agohost_os_name value in config-scripts has changed to 'solaris' some time ago
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

2 years agoMerge pull request #692 from AtariDreams/inverse-check
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

2 years agoMerge pull request #695 from ggodlewski/master
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

2 years agoCheck that the number of trays is consistent before fetching anymore data 692/head
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.

2 years agoFix ipptool JSON output 695/head
Grzegorz Godlewski [Sat, 13 May 2023 21:04:21 +0000 (23:04 +0200)] 
Fix ipptool JSON output

2 years agoMerge pull request #591 from AtariDreams/XOR-3
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

2 years agoUse XOR for integers that are always 1 or 0 591/head
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.

2 years agoMerge pull request #655 from AtariDreams/What-We-Learned
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

2 years agoFree memory leaked by Darwin's Core Foundation 655/head
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.

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

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

2 years agoWordlen should be a size_t, not an int 684/head
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.

2 years agoUse print_ptr instead of print_buffer 686/head
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.

2 years agoMerge pull request #687 from davebarkerxyz/fix-persist-color-mode
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

2 years agoFix check for existing color mode setting 687/head
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.

2 years agoUpdate copyright.
Michael R Sweet [Wed, 10 May 2023 19:43:12 +0000 (15:43 -0400)] 
Update copyright.

2 years agoRemove unused variable.
Michael R Sweet [Wed, 10 May 2023 19:41:14 +0000 (15:41 -0400)] 
Remove unused variable.

2 years agoFix an integer overflow issue in the PWG media size name code (Issue #668)
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)

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

2 years agoUse %u for unsigned, not signed 656/head
Rose [Wed, 19 Apr 2023 18:12:13 +0000 (14:12 -0400)] 
Use %u for unsigned, not signed

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

2 years agoImprove state handling in cases of memory allocation failure 590/head
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();

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

2 years agoDrop Codacy code scanning.
Michael R Sweet [Mon, 1 May 2023 22:46:03 +0000 (18:46 -0400)] 
Drop Codacy code scanning.

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

2 years agoCast to unsigned long instead of long for size_t 659/head
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.