]>
git.ipfire.org Git - thirdparty/cups-filters.git/log
Till Kamppeter [Thu, 1 Jul 2021 14:10:18 +0000 (16:10 +0200)]
Updated NEWS
Till Kamppeter [Thu, 1 Jul 2021 14:08:36 +0000 (16:08 +0200)]
texttotext: Silenced warnings.
suraj kulriya [Thu, 1 Jul 2021 13:50:10 +0000 (19:20 +0530)]
Made texttotext filter PPD-file-independent
Till Kamppeter [Tue, 29 Jun 2021 22:14:13 +0000 (00:14 +0200)]
libcupsfilters: In pdftopdf() copy input to temp file if inputseekable == 0
Till Kamppeter [Mon, 28 Jun 2021 16:35:08 +0000 (18:35 +0200)]
Updated NEWS
Till Kamppeter [Mon, 28 Jun 2021 16:31:00 +0000 (18:31 +0200)]
libcupsfilters: Silenced compiler warning in ghostscript()
suraj kulriya [Mon, 28 Jun 2021 15:06:35 +0000 (20:36 +0530)]
Made ghostscript() filter function PPD-file-independent
- ghostscript() filter function PPD-file-independent
- Made cupsRasterPrepareHeader() PPD-file-independent and added support for job attributes in cupsRasterParseIPPOptions() by joining options and job attributes using new function joinJoboptionsAndAttrs()
Till Kamppeter [Fri, 25 Jun 2021 18:20:14 +0000 (20:20 +0200)]
Updated NEWS
Till Kamppeter [Fri, 25 Jun 2021 18:12:16 +0000 (20:12 +0200)]
libcupsfilters: in pdftoraster() removed newlines from log messages and some formatting
Till Kamppeter [Fri, 25 Jun 2021 17:44:34 +0000 (19:44 +0200)]
libcupsfilters: Silenced compiler warnings in pdftoraster() filter function
Till Kamppeter [Fri, 25 Jun 2021 16:55:22 +0000 (18:55 +0200)]
pdftoraster: Renamed CUPS filter stub from .cxx to .c, fixed Makefile.am
Pratyush Ranjan [Fri, 25 Jun 2021 16:29:09 +0000 (21:59 +0530)]
libcupsfilters, pdftoraster: Converted pdftoraster into a filter function
suraj kulriya [Mon, 21 Jun 2021 16:20:34 +0000 (21:50 +0530)]
libcupsfilters: Make rastertopdf() filter function independent of PPD files
Till Kamppeter [Mon, 21 Jun 2021 15:00:05 +0000 (17:00 +0200)]
libcupsfilters: In ghostscript() filter function corrected closing of logging process
Till Kamppeter [Mon, 21 Jun 2021 14:46:55 +0000 (16:46 +0200)]
libcupsfilters: In filterExternalCUPS() log control messages without filter name and close logging correctly
Till Kamppeter [Mon, 21 Jun 2021 13:29:24 +0000 (15:29 +0200)]
libcupsfilters: Capture stderr of Ghostscript called via ghostscript()
Till Kamppeter [Mon, 21 Jun 2021 09:12:59 +0000 (11:12 +0200)]
libcupsfilters: Capture stderr of filter called via filterExternalCUPS()
Till Kamppeter [Fri, 18 Jun 2021 10:36:02 +0000 (12:36 +0200)]
Updated NEWS
zdohnal [Fri, 18 Jun 2021 10:27:53 +0000 (12:27 +0200)]
cups-browsed.c: Make NotifLeaseDuration configurable and renew after half the lease duration not 60 sec before end
1) NotifLeaseDuration directive for cups-browsed.conf - it will make
lease duration for notifications configurable by users. IMO it is not
useful for regular users, but it is helpful during sanity testing
(for verifying that we actually renew the subscription when time
comes). The current hardcoded 1 day is unusuable for that :( .
I implemented the lowest threshold to 300s to prevent a possible DoS.
2) Subscription renewal is set to happen in the middle of NotifLeaseDuration,
not one minute before lease expiration. This was a problem on busy servers,
where cups-browsed was busy and wasn't able to renew the subscription
before cupsd removed it. Then if some jobs had come before the subscription
was created again, the queue got disabled. The proposed approach is based
on behavior of DHCP.
Till Kamppeter [Wed, 16 Jun 2021 14:17:34 +0000 (16:17 +0200)]
libcupsfilters: Simplified how PPD generator determines whether printer is color
Till Kamppeter [Wed, 16 Jun 2021 13:07:35 +0000 (15:07 +0200)]
libppd: Removed PPD generator test from testppd
Till Kamppeter [Mon, 14 Jun 2021 19:41:20 +0000 (21:41 +0200)]
libcupsfilters: Silenced compiler warnings
Till Kamppeter [Mon, 14 Jun 2021 19:28:27 +0000 (21:28 +0200)]
libcupsfilters: Removed duplicate code in the apply_filters() function
Till Kamppeter [Fri, 11 Jun 2021 18:06:26 +0000 (20:06 +0200)]
libcupsfilters: Added filterExternalCUPS() filter function
Till Kamppeter [Tue, 8 Jun 2021 10:29:46 +0000 (12:29 +0200)]
driverless: Changed way to emit exit code 0 when no printer found
Till Kamppeter [Tue, 8 Jun 2021 09:34:27 +0000 (11:34 +0200)]
driverless: Exit with 0 if no driverless IPP printers found
Till Kamppeter [Thu, 3 Jun 2021 17:22:52 +0000 (19:22 +0200)]
foomatic-rip: Modified fix for zero-page PS job handling, to allow streaming
Till Kamppeter [Wed, 26 May 2021 21:19:55 +0000 (23:19 +0200)]
libcupsfilters: Default to AdobeRGB only if in 16 bit per color
Till Kamppeter [Tue, 25 May 2021 16:07:38 +0000 (18:07 +0200)]
libcupsfilters: Color space/depth auto-selection for Apple/PWG Raster
Till Kamppeter [Tue, 25 May 2021 15:40:24 +0000 (17:40 +0200)]
Updated NEWS
Till Kamppeter [Fri, 14 May 2021 21:59:09 +0000 (23:59 +0200)]
Updated NEWS
suraj kulriya [Fri, 14 May 2021 09:39:14 +0000 (15:09 +0530)]
libcupsfilters: Fixed gs command line for counting pages as it took too long on PDFs converted from DjVu
Bhavna2020 [Wed, 12 May 2021 17:02:44 +0000 (22:32 +0530)]
cups-browsed: Renamed ldap_connect() due to conflict in new openldap
Till Kamppeter [Wed, 28 Apr 2021 14:13:40 +0000 (16:13 +0200)]
libcupsfilters: Clean-up of human-readable string handling in the PPD generator
Till Kamppeter [Mon, 26 Apr 2021 20:40:38 +0000 (22:40 +0200)]
libcupsfilters: Function name clean-up for PPD generator
Till Kamppeter [Mon, 26 Apr 2021 20:34:25 +0000 (22:34 +0200)]
libppd: Removed ppdCreateFromIPPCUPS() - We have better one in libcupsfilters
zdohnal [Mon, 26 Apr 2021 09:51:12 +0000 (11:51 +0200)]
cups-browsed: Lock before all 'examine_discovered_printer_record()' (#364)
The current code doesn't use rwlock in found_cups_printer() and
cupsdUpdateLDAPBrowse(), which causes deadlock when discovering queues
via BrowsePoll or LDAP.
It happens because the code in 'examine_discovered_printer_record()'
expects the rwlock to be locked already, so it unlocks the lock, calls
'get_local_queue_name()' and locks again.
The commit contains change '&(lock)' -> '&lock' too, it represents the
same thing, so we should use the same code for it.
Pratyush Ranjan [Sun, 25 Apr 2021 14:11:56 +0000 (19:41 +0530)]
Pdftoraster: free colour data after processing of each page (#363)
pdftoraster: Free colordata after end of each page, eliminating a severe memory leak
Till Kamppeter [Tue, 20 Apr 2021 15:58:37 +0000 (17:58 +0200)]
Updated NEWS
Till Kamppeter [Tue, 20 Apr 2021 12:21:10 +0000 (14:21 +0200)]
cups-browsed: Removed forgotten remainders of interface script support
pranshukharkwal [Tue, 20 Apr 2021 11:01:09 +0000 (16:31 +0530)]
libcupsfilters: Remove support for asymmetric ppi in imagesto... filter functions()
Till Kamppeter [Sun, 18 Apr 2021 21:25:32 +0000 (23:25 +0200)]
cups-browsed: Added multi-threaded operation
Till Kamppeter [Fri, 16 Apr 2021 21:06:19 +0000 (23:06 +0200)]
Updated NEWS
Till Kamppeter [Thu, 15 Apr 2021 12:26:44 +0000 (14:26 +0200)]
cups-browsed: Always save "...-default" option entries from printers.conf
Till Kamppeter [Thu, 15 Apr 2021 10:28:58 +0000 (12:28 +0200)]
Updated NEWS
zdohnal [Thu, 15 Apr 2021 10:17:14 +0000 (12:17 +0200)]
utils/cups-browsed.service: Add network-online.target (#360)
cups-browsed can be set to browsepolling remote servers, browsing remote
queues via CUPS protocol or sharing local queues via CUPS protocol.
Although sharing and browsing happens via browsesocket (which can be
solved by setting socket option IP_FREEBIND), browsepolling must have
network working to communicate with a remote server.
suraj kulriya [Thu, 1 Apr 2021 09:09:02 +0000 (14:39 +0530)]
texttopdf: Set default margins when no PPD file is used
Till Kamppeter [Wed, 10 Mar 2021 22:28:29 +0000 (23:28 +0100)]
libppd: Fixed PPD memory leak of "emulators" field not freed
Till Kamppeter [Wed, 10 Mar 2021 19:27:45 +0000 (20:27 +0100)]
libcupsfilters: Made driverless PPD generator more reliable for print or fax PPD
Till Kamppeter [Tue, 9 Mar 2021 21:53:50 +0000 (22:53 +0100)]
foomatic-rip: Fixed segfault cause by wrong option parsing
Till Kamppeter [Sun, 7 Mar 2021 16:12:01 +0000 (17:12 +0100)]
libppd: Make "True" in boolean options case-insensitive
Till Kamppeter [Thu, 25 Feb 2021 17:49:43 +0000 (18:49 +0100)]
Updated NEWS
Bhavna2020 [Thu, 25 Feb 2021 17:38:30 +0000 (23:08 +0530)]
implicitclass: Raise timeout for cups-browsed's answer from 20s to 60s
Till Kamppeter [Fri, 12 Feb 2021 16:43:32 +0000 (17:43 +0100)]
libcupsfilters: Fixed several temporary file leaks
Till Kamppeter [Tue, 9 Feb 2021 20:42:12 +0000 (21:42 +0100)]
libcupsfilters: More manufacturer name fixes in ieee1284NormalizeMakeAndModel()
Till Kamppeter [Mon, 8 Feb 2021 22:44:33 +0000 (23:44 +0100)]
Updated NEWS
Till Kamppeter [Thu, 21 Jan 2021 19:27:24 +0000 (20:27 +0100)]
libppd: In the ppdPwgUnppdizeName() function support negative numbers
Till Kamppeter [Thu, 21 Jan 2021 18:56:06 +0000 (19:56 +0100)]
libcupsfilters: When normalizing printer model name replace '+' by "plus"
Till Kamppeter [Thu, 21 Jan 2021 14:50:26 +0000 (15:50 +0100)]
libcupsfilters: In the PPD generator really give priority to Apple Raster against PDF
Till Kamppeter [Thu, 21 Jan 2021 14:48:34 +0000 (15:48 +0100)]
libppd: In the PPD generator really give priority to Apple Raster against PDF
Till Kamppeter [Thu, 7 Jan 2021 20:20:29 +0000 (21:20 +0100)]
Updated NEWS
suraj kulriya [Thu, 7 Jan 2021 20:17:01 +0000 (01:47 +0530)]
Build system: Add files in gitignore that are generated by autogen.sh configure and make
Till Kamppeter [Thu, 7 Jan 2021 18:39:06 +0000 (19:39 +0100)]
Small correction in NEWS
Till Kamppeter [Thu, 7 Jan 2021 12:35:54 +0000 (13:35 +0100)]
implicitclass: Added "#include <signal.h>"
Till Kamppeter [Thu, 7 Jan 2021 11:55:09 +0000 (12:55 +0100)]
libppd: Removed versioning.h and the macros defined in this file
Till Kamppeter [Thu, 7 Jan 2021 09:14:40 +0000 (10:14 +0100)]
driverless: Removed the support quality check
Till Kamppeter [Wed, 30 Dec 2020 23:56:42 +0000 (00:56 +0100)]
libcupsfilters: Added documentation for parameters of pdftopdf() in filter.h
pranshukharkwal [Wed, 30 Dec 2020 23:29:54 +0000 (04:59 +0530)]
pdftopdf : Fix no final_content_type environment variable found bug (#333)
* pdftopdf: Fix FINAL_CONTENT_TYPE environment variable not passed to pdftopdf()
Till Kamppeter [Tue, 22 Dec 2020 17:26:26 +0000 (18:26 +0100)]
libcupsfilters: Let filter functions not load the PPD and not mark PPD options
Till Kamppeter [Sun, 20 Dec 2020 13:18:21 +0000 (14:18 +0100)]
libcupsfilters: In the PPD generator give priority to Apple Raster against PDF
Till Kamppeter [Sun, 20 Dec 2020 13:15:00 +0000 (14:15 +0100)]
libppd: In the PPD generator give priority to Apple Raster against PDF
Till Kamppeter [Thu, 3 Dec 2020 22:46:25 +0000 (23:46 +0100)]
libcupsfilters: Corrected color space mapping in cupsRasterParseIPPOptions()
Till Kamppeter [Thu, 3 Dec 2020 13:52:18 +0000 (14:52 +0100)]
libppd: Fix duplicate ColorModel entries in generated PPD files
Till Kamppeter [Thu, 3 Dec 2020 13:51:18 +0000 (14:51 +0100)]
libcupsfilters: Fix duplicate ColorModel entries in generated PPD files
Till Kamppeter [Tue, 1 Dec 2020 23:17:36 +0000 (00:17 +0100)]
Updated NEWS
Till Kamppeter [Tue, 1 Dec 2020 23:16:19 +0000 (00:16 +0100)]
libppd: In generated PPDs add a grayscale mode if only color available
Till Kamppeter [Tue, 1 Dec 2020 23:15:04 +0000 (00:15 +0100)]
libcupsfilters: In generated PPDs add a grayscale mode if only color available
Till Kamppeter [Tue, 1 Dec 2020 22:54:34 +0000 (23:54 +0100)]
libppd: In generated PPDs add an "OutputBin" option also with one choice
Till Kamppeter [Tue, 1 Dec 2020 22:51:02 +0000 (23:51 +0100)]
libcupsfilters: In generated PPDs add an "OutputBin" option also with one choice
Till Kamppeter [Tue, 1 Dec 2020 22:39:47 +0000 (23:39 +0100)]
libppd: Generated PPDs could have an "Unknown" default InputSlot
Till Kamppeter [Tue, 1 Dec 2020 22:37:15 +0000 (23:37 +0100)]
libcupsfilters: Generated PPDs could have an "Unknown" default InputSlot
Till Kamppeter [Mon, 30 Nov 2020 21:23:43 +0000 (22:23 +0100)]
libcupsfilters: In pdftops() do not close stdin to not confuse pipe creation
Till Kamppeter [Fri, 27 Nov 2020 10:05:48 +0000 (11:05 +0100)]
cups-browsed: Fixed preservation of location/description info on local queues
Till Kamppeter [Thu, 26 Nov 2020 21:29:47 +0000 (22:29 +0100)]
cups-browsed: Removed all calls of the resolve_uri() function
Till Kamppeter [Tue, 24 Nov 2020 17:17:07 +0000 (18:17 +0100)]
Updated NEWS
Till Kamppeter [Mon, 23 Nov 2020 21:51:07 +0000 (22:51 +0100)]
Merge pull request #322 from zdohnal/various-browsed-issues
cups-browsed: Fixed various issues discovered with Valgrind
Zdenek Dohnal [Mon, 23 Nov 2020 14:36:17 +0000 (15:36 +0100)]
cups-browsed.c: Add resolutionNew() to public API and missing brackets
Zdenek Dohnal [Mon, 23 Nov 2020 14:11:46 +0000 (15:11 +0100)]
cups-browsed.c: Initialize 'print_quality'
Initialize 'print_quality' to prevent conditional jump on uninitialized value.
Zdenek Dohnal [Mon, 23 Nov 2020 14:07:25 +0000 (15:07 +0100)]
cups-browsed.c: Fix leakage of CUPS arrays when checking supported attrs
Zdenek Dohnal [Mon, 23 Nov 2020 14:05:53 +0000 (15:05 +0100)]
cups-browsed.c: Fix leakage of IPP response
The IPP response needs to be freed before possible breaking from a loop.
Zdenek Dohnal [Mon, 23 Nov 2020 14:04:26 +0000 (15:04 +0100)]
cups-browsed.c: Fix 'document_format' memory leak
Zdenek Dohnal [Mon, 23 Nov 2020 14:02:44 +0000 (15:02 +0100)]
cups-browsed.c: Introduce a new pointer to prevent overwriting an allocated pointer
Zdenek Dohnal [Mon, 23 Nov 2020 13:53:37 +0000 (14:53 +0100)]
cups-browsed.c: Fix conditional jumps based on uninitialized value
Strings added with IPP_TAG_MIMETYPE and IPP_TAG_KEYWORD tags use uninitialized
buffers, which causes random behavior. The buffers can be initialized via f.e.
'snprintf()'.
Zdenek Dohnal [Mon, 23 Nov 2020 13:47:15 +0000 (14:47 +0100)]
cups-browsed.c: Fix nickname pointer memory leak
This memory leak was caused by losing the original pointer to allocated memory and
trying to free incomplete pointer. The fix reimplements acquiring of nickname
algorithm and allocates the precise memory for nickname. In case of error, the algorithm
reports an warning into debug log and continue with reading from PPD.
Zdenek Dohnal [Mon, 23 Nov 2020 13:38:00 +0000 (14:38 +0100)]
cups-browsed.c: Fix memory ipp_t struct memory leak
Zdenek Dohnal [Mon, 23 Nov 2020 13:34:04 +0000 (14:34 +0100)]
ppdgenerator.c: Free printer_sizes array
We need to free 'printer_sizes', which is allocated in 'ppdCreateFromIPP2()', instead of
'sizes', which is passed as a parameter - because it solves a memory leak and it doesn't
leave an invalid pointer.
Zdenek Dohnal [Mon, 23 Nov 2020 13:30:58 +0000 (14:30 +0100)]
cups-browsed.c: Free the allocated memory if error happened and we have a cluster
The code previously leaked several structs, if an error occured during print cluster creation.
Zdenek Dohnal [Mon, 23 Nov 2020 13:25:37 +0000 (14:25 +0100)]
cups-browsed.c: Call 'get_cluster_attributes()' earlier
It looks like 'get_cluster_attributes()' needs to be called earlier than where it is now,
because the code checks 'printer_attributes' (where is the result of 'get_cluster_attributes()'
for clustered queues) before the first 'get_cluster_attributes()' right now, which looks like
an error. So the fix moves the 'get_cluster_attributes()' call before the first 'printer_attributes'
query.
Zdenek Dohnal [Mon, 23 Nov 2020 13:19:49 +0000 (14:19 +0100)]
cups-browsed.c: revert
a5a3344aea0bc9 , silence the compiler warning
Revert the commit
a5a3344aea0bc9 because it puts back the invalid memory error, and just recast 'uuid' to 'char*'.
Zdenek Dohnal [Mon, 23 Nov 2020 13:09:54 +0000 (14:09 +0100)]
cups-browsed.c: Free the memory in correct order
The 'temp' pointer has two allocated pointers inside, free them before freeing the main pointer.