]>
git.ipfire.org Git - thirdparty/cups-filters.git/log
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.
Zdenek Dohnal [Mon, 23 Nov 2020 13:08:16 +0000 (14:08 +0100)]
cups-browsed.c: Remove unused pointer
The 'temp' pointer looks unused, so remove it.
Zdenek Dohnal [Mon, 23 Nov 2020 13:01:34 +0000 (14:01 +0100)]
cups-browsed.c: Add tagzero attributes as IPP_TAG_KEYWORD
These attributes were added previously ass IPP_CONST_TAG(IPP_TAG_KEYWORD), which causes a problem
during 'ippDelete()' - const strings are not freed during 'ippDelete', which causes memory leaks,
because we send allocated strings into 'ippAddStrings'.
I chose this solution instead of defining a new function for freeing ipp_t struct, please let me
know if it is acceptable.
Zdenek Dohnal [Mon, 23 Nov 2020 12:52:42 +0000 (13:52 +0100)]
ppdgenerator.c, cups-browsed.c: Fix resolution struct leaks
The code leaks res_t struct in several places:
- if struct is added to CUPS array, which is defined with copy_resolution() as a copy function.
copy_resolution() uses calloc(), so the original allocated res_t can be freed. The resolution
functions are used in cups-browsed.c, so 'free_resolution()' has to be available outside in header
file.
- overwritting previously allocated pointer with a new one in 'on_job_state()'
Till Kamppeter [Fri, 20 Nov 2020 23:47:55 +0000 (00:47 +0100)]
libcupsfilters: Let pdftopdf() output JCL for PDF printers to the output file descriptor
Till Kamppeter [Fri, 20 Nov 2020 23:21:58 +0000 (00:21 +0100)]
libcupsfilters: Support for callback function to indicate canceled job
Till Kamppeter [Tue, 17 Nov 2020 22:26:47 +0000 (23:26 +0100)]
Build system: Make parallel builds work
Till Kamppeter [Mon, 16 Nov 2020 22:59:16 +0000 (23:59 +0100)]
libppd: Fixed test suite ppd/testppd.c
Till Kamppeter [Mon, 16 Nov 2020 10:31:49 +0000 (11:31 +0100)]
libcupsfilters: Added explicit dependency on libppd.la
Till Kamppeter [Sun, 15 Nov 2020 21:32:22 +0000 (22:32 +0100)]
libppd, libcupsfilters, bannertopdf, texttopdf: Added "ARDuplex" option support
Till Kamppeter [Sun, 15 Nov 2020 21:13:20 +0000 (22:13 +0100)]
libppd: Move PPD-option-name-converting functions into public API
Till Kamppeter [Fri, 13 Nov 2020 22:30:37 +0000 (23:30 +0100)]
libppd: Correct conversion between PPD option names and IPP attribute names
Till Kamppeter [Fri, 13 Nov 2020 09:24:46 +0000 (10:24 +0100)]
cups-browsed: Silenced compiler warning
Till Kamppeter [Fri, 13 Nov 2020 09:19:45 +0000 (10:19 +0100)]
Updated NEWS
Till Kamppeter [Fri, 13 Nov 2020 08:46:45 +0000 (09:46 +0100)]
Merge pull request #318 from tsite/master
foomatic-rip: Fix infinite loop and input from file on raw printing
Pranav Batra [Fri, 13 Nov 2020 08:25:48 +0000 (08:25 +0000)]
cups-filters: Fix foomatic-rip infinite loop
If the foomatic rip command is not present in the PPD file, the foomatic
rip filter runs cat by default to forward stdin to stdout. However,
if input is provided through a file instead of stdin, then this file
needs to be dup'd to stdin for the command to work properly.
Also, the next file needs to be selected each time an input file is
processed by calling strok_r in order to prevent an infinite loop.
TEST=foomatic-rip --ppd=ppd.ppd file.pdf
Till Kamppeter [Sun, 8 Nov 2020 22:46:03 +0000 (23:46 +0100)]
libcupsfilters: Let imagetops/imagetopdf convert to grayscale on job's request
Till Kamppeter [Sun, 8 Nov 2020 20:17:27 +0000 (21:17 +0100)]
libcupsfilters: In cupsRasterParseIPPOptions() improved color space handling
Till Kamppeter [Fri, 6 Nov 2020 14:43:25 +0000 (15:43 +0100)]
libcupsfilters: Make sure all filter functions close their output file descriptor
Till Kamppeter [Fri, 6 Nov 2020 14:08:53 +0000 (15:08 +0100)]
libcupsfilters: Added filterPOpen() and filterPClose() functions
Till Kamppeter [Fri, 30 Oct 2020 14:15:51 +0000 (15:15 +0100)]
libcupsfilters: Vastly enhanced ieee1284NormalizeMakeAndModel()
Till Kamppeter [Wed, 28 Oct 2020 09:44:19 +0000 (10:44 +0100)]
libcupsfilters: Added NULL check when removing ".Borderless" suffixes from page size names
Till Kamppeter [Tue, 27 Oct 2020 22:18:58 +0000 (23:18 +0100)]
test1284: Moved to cupsfilters/ as tested function is in libcupsfilters now
Till Kamppeter [Tue, 27 Oct 2020 22:06:42 +0000 (23:06 +0100)]
libcupsfilters: Made internal device-ID-related functions public and renamed them
Till Kamppeter [Tue, 27 Oct 2020 21:37:57 +0000 (22:37 +0100)]
libcupsfilters, parallel, test1284: Moved device-ID-related functions into libcupsfilters
Till Kamppeter [Tue, 27 Oct 2020 19:36:14 +0000 (20:36 +0100)]
libppd: Corrected newline output of log function in "testppd"
Till Kamppeter [Tue, 27 Oct 2020 08:30:39 +0000 (09:30 +0100)]
Updated NEWS
Till Kamppeter [Tue, 27 Oct 2020 07:32:30 +0000 (08:32 +0100)]
Merge pull request #313 from bmasonrh/master
foomatic-rip: Remove temporary file created during pdf-to-ps conversion
Bryan Mason [Tue, 27 Oct 2020 03:36:11 +0000 (20:36 -0700)]
foomatic-rip: remove tempfile created during pdf-to-ps conversion
Till Kamppeter [Fri, 23 Oct 2020 21:53:03 +0000 (23:53 +0200)]
libcupsfilters, libppd: Made logging compatible with PAPPL, removed "exit(1)"
Till Kamppeter [Fri, 23 Oct 2020 13:18:07 +0000 (15:18 +0200)]
libcupsfilters: Add page log message in rastertops() filter function
Till Kamppeter [Fri, 23 Oct 2020 11:40:40 +0000 (13:40 +0200)]
libcupsfilters: Logging corrections in pdftops() filter function
Till Kamppeter [Thu, 22 Oct 2020 19:27:28 +0000 (21:27 +0200)]
libcupsfilters: In pstops() filter function close streams at the end
Till Kamppeter [Thu, 22 Oct 2020 19:26:24 +0000 (21:26 +0200)]
libcupsfilters: In pdftops() filter function fix option handling and close streams at the end
Till Kamppeter [Thu, 22 Oct 2020 19:10:48 +0000 (21:10 +0200)]
libcupsfilters: Several fixes on the filterChain() function
Till Kamppeter [Thu, 15 Oct 2020 11:59:59 +0000 (13:59 +0200)]
libppd: In ppdLoadAttributes() set media type default correctly
Till Kamppeter [Mon, 12 Oct 2020 21:16:21 +0000 (23:16 +0200)]
Updated NEWS
Till Kamppeter [Mon, 12 Oct 2020 16:14:49 +0000 (18:14 +0200)]
Merge pull request #311 from zdohnal/printer_uuid_freed
cups-browsed: UUID was used after its pointer was freed by ippDelete()
Zdenek Dohnal [Mon, 12 Oct 2020 11:01:05 +0000 (13:01 +0200)]
cups-browsed.c: uuid was used after its pointer was freed by ippDelete()
Till Kamppeter [Tue, 6 Oct 2020 15:41:58 +0000 (17:41 +0200)]
libcupsfilters: In pstops removed unneeded _CUPS_FORMAT(2, 3) macro use
Till Kamppeter [Thu, 1 Oct 2020 18:04:09 +0000 (20:04 +0200)]
driverless: Always output debug message when ippfind terminates successfully
Till Kamppeter [Thu, 1 Oct 2020 17:59:34 +0000 (19:59 +0200)]
driverless: Avoid duplicate PPD list entries from the same device via UUID
Till Kamppeter [Thu, 1 Oct 2020 16:47:43 +0000 (18:47 +0200)]
driverless: Reduce "ippfind" calls by "driverless" called by CUPS also listing fax PPDs, also avoid duplicate listings in printer discovery
Till Kamppeter [Thu, 1 Oct 2020 12:53:32 +0000 (14:53 +0200)]
driverless: Whitespace/Indentation clean-up
Till Kamppeter [Thu, 1 Oct 2020 11:54:36 +0000 (13:54 +0200)]
driverless: Simplified code as "ippfind" allows more than on reg type on its command line
Till Kamppeter [Tue, 29 Sep 2020 21:15:06 +0000 (23:15 +0200)]
libppd: Added PPD file collection handling functions
Till Kamppeter [Tue, 29 Sep 2020 20:57:53 +0000 (22:57 +0200)]
Sample PPDs: Corrected manufacturer name in Fuji_Xerox-DocuPrint_CM305_df-PDF.ppd
Till Kamppeter [Fri, 25 Sep 2020 09:04:21 +0000 (11:04 +0200)]
libppd: Libppd will be introduced in 2.0.0 release not in 1.28.0
Till Kamppeter [Thu, 17 Sep 2020 19:42:11 +0000 (21:42 +0200)]
imagetopdf: Added support for PPD-less use, folded in functions from common.c
Till Kamppeter [Thu, 17 Sep 2020 18:43:20 +0000 (20:43 +0200)]
libcupsfilters, imagetops: Added imagetops() filter function
Till Kamppeter [Thu, 17 Sep 2020 14:49:09 +0000 (16:49 +0200)]
libcupsfilters: Fixed inconsistency between resolvers for DNS-SD-based URIs
Till Kamppeter [Thu, 17 Sep 2020 14:08:33 +0000 (16:08 +0200)]
Merge pull request #309 from zdohnal/ipp_uninitialized_buf
driverless: Fix uninitialized buffer and parsing ippfind output
Zdenek Dohnal [Thu, 17 Sep 2020 13:34:08 +0000 (15:34 +0200)]
driverless: Fix uninitialized buffer and parsing ippfind output
Till Kamppeter [Wed, 16 Sep 2020 22:33:38 +0000 (00:33 +0200)]
imagetopdf: Added wrapper CUPS filter for imagetopdf() filter function
Till Kamppeter [Wed, 16 Sep 2020 22:32:32 +0000 (00:32 +0200)]
libcupsfilters, imagetopdf: Convert imagetopdf into filter function
Till Kamppeter [Wed, 16 Sep 2020 10:49:05 +0000 (12:49 +0200)]
imagetoraster: Added wrapper CUPS filter for imagetoraster() filter function
Till Kamppeter [Wed, 16 Sep 2020 10:47:56 +0000 (12:47 +0200)]
libcupsfilters, imagetoraster: Convert imagetoraster into filter function
Till Kamppeter [Sun, 13 Sep 2020 09:08:55 +0000 (11:08 +0200)]
sys5ippprinter, cups-browsed: Removed sys5ippprinter filter
Till Kamppeter [Sat, 12 Sep 2020 14:04:47 +0000 (16:04 +0200)]
Updated NEWS
Till Kamppeter [Sat, 12 Sep 2020 09:09:06 +0000 (11:09 +0200)]
libcupsfilters: Corrected page logging in pdftopdf() filter function
Till Kamppeter [Sat, 12 Sep 2020 09:00:12 +0000 (11:00 +0200)]
Merge pull request #307 from JaiLuthra1/pdftopdf_fix
pdftopdf: Fix logging issue
Jai Luthra [Sat, 12 Sep 2020 08:00:00 +0000 (13:30 +0530)]
pdftopdf: fix logging issue.
Till Kamppeter [Thu, 10 Sep 2020 19:27:34 +0000 (21:27 +0200)]
Updated NEWS
Till Kamppeter [Thu, 10 Sep 2020 14:14:05 +0000 (16:14 +0200)]
Updated NEWS
Till Kamppeter [Thu, 10 Sep 2020 14:11:05 +0000 (16:11 +0200)]
libcupsfilters, gstoraster, gstopdf, gstopxl: Replaced gstoraster wrapper scripts by wrappers for ghostscript() filter function. In ghostscript() reverted addition of extra fork to catch stderr of Ghostscript.
Till Kamppeter [Tue, 8 Sep 2020 20:20:05 +0000 (22:20 +0200)]
libcupsfilters, gstoraster: Convert gstoraster into the ghostscript() filter function
Till Kamppeter [Mon, 7 Sep 2020 10:22:51 +0000 (12:22 +0200)]
Merge pull request #306 from zdohnal/master
driverless: Free the used memory, add freeing function to CUPS arrays
Zdenek Dohnal [Mon, 7 Sep 2020 10:15:57 +0000 (12:15 +0200)]
Free the used memory
Till Kamppeter [Sun, 6 Sep 2020 20:56:28 +0000 (22:56 +0200)]
driverless: Fix double free and select() timeout handling
Till Kamppeter [Sun, 6 Sep 2020 20:03:31 +0000 (22:03 +0200)]
Merge pull request #305 from nidhijainpnp/parallel_ippfind_tasks
driverless: Read output of the two ippfind calls simultaneously using select()
nidhijainpnp [Sun, 6 Sep 2020 19:32:12 +0000 (01:02 +0530)]
using select() to read ippfind output inCUPS array
nidhijainpnp [Sat, 5 Sep 2020 15:19:55 +0000 (20:49 +0530)]
driverless.c: creating two more forks to read output of each ippfind call simultaneously
Till Kamppeter [Wed, 2 Sep 2020 10:47:20 +0000 (12:47 +0200)]
Update NEWS
Till Kamppeter [Wed, 2 Sep 2020 10:42:08 +0000 (12:42 +0200)]
Updated NEWS
Till Kamppeter [Wed, 2 Sep 2020 08:32:00 +0000 (10:32 +0200)]
libcupsfilters: Addded PDF page count function taking the PDF via FILE* pointer
Till Kamppeter [Wed, 2 Sep 2020 08:31:29 +0000 (10:31 +0200)]
Merge pull request #304 from zdohnal/driverless_memleaks
driverless: Free allocated memory, use MAX_OUTPUT_LEN
Zdenek Dohnal [Wed, 2 Sep 2020 08:27:26 +0000 (10:27 +0200)]
driverless.c: free an allocated memory, use MAX_OUTPUT_LEN
Till Kamppeter [Tue, 1 Sep 2020 12:02:44 +0000 (14:02 +0200)]
Updated NEWS
Till Kamppeter [Tue, 1 Sep 2020 11:46:36 +0000 (13:46 +0200)]
Merge pull request #303 from sthibaul/liblouis
braille: Support new liblouis tables not containing a display name
Till Kamppeter [Mon, 31 Aug 2020 20:27:29 +0000 (22:27 +0200)]
libcupsfilters: Silenced warning in rastertopdf() filter function
Till Kamppeter [Mon, 31 Aug 2020 20:08:53 +0000 (22:08 +0200)]
libcupsfilters: Fixed typo
Till Kamppeter [Mon, 31 Aug 2020 20:06:50 +0000 (22:06 +0200)]
Merge pull request #302 from nidhijainpnp/run_ippfind_tasks_parallel
driverless: Make the two ippfind tasks(for IPP and IPPS) run in parallel
Till Kamppeter [Mon, 31 Aug 2020 20:04:14 +0000 (22:04 +0200)]
libcupsfilters: Extended filter_out_format_t type definition for ghostscript() filter function
Samuel Thibault [Mon, 31 Aug 2020 19:26:13 +0000 (21:26 +0200)]
braille: Support new liblouis tables not containing a display name
nidhijainpnp [Mon, 31 Aug 2020 18:22:42 +0000 (23:52 +0530)]
driverless.c: make the two ippfind tasks(for IPP and
IPPS) run in parallel.
Till Kamppeter [Mon, 31 Aug 2020 12:44:51 +0000 (14:44 +0200)]
libcupsfilters: Added filterChain() filter function
Till Kamppeter [Sun, 30 Aug 2020 18:42:58 +0000 (20:42 +0200)]
libcupsfilters: White space/line break/indentation clean-up of filter.h