Wykres commitów

12199 Commity (db573b74ed24c04f557eaba0ecc79aa7c9f20e2a)

Autor SHA1 Wiadomość Data
David Ward db573b74ed Fix format specifiers to match arguments' data types 2022-03-08 19:00:00 -05:00
David Ward 1a933bba7e Cast pointer arguments if needed when using "%p" format specifier
Pointer arguments must have type (void *) when printed with the format
specifier "%p".
2022-03-08 19:00:00 -05:00
David Ward f3162bafa8 Replace variable self-assignments to avoid Clang warnings
These were intended to suppress GCC warnings about unused variables.
However, this leads to different warnings from Clang instead.

Use another approach that suppresses warnings from both compilers.
2022-03-08 19:00:00 -05:00
David Ward 6be83f469b Resolve compiler warnings about misleading indentation
This change is targeted at specific lines of code reported by GCC or
Clang as potentially causing unintended behavior.
2022-03-08 19:00:00 -05:00
David Ward 6cc15e2b81 Adjust conditional expressions to resolve compiler warnings 2022-03-08 19:00:00 -05:00
David Ward 2955089cd9 Fix conditional expressions with unintended behavior 2022-03-08 19:00:00 -05:00
David Ward 1458d23c42 umax: Fix unintended string concatenation in array definition
This causes the wrong error message to be used in the log.
2022-03-08 19:00:00 -05:00
David Ward bfa69c26e6 snapscan: Fix debug logging in sense_handler()
Remove an extraneous log message.

Ensure that a separate log message is only printed when the preceding
if-statement is true (and its string argument has actually been set).

Both issues were identified from GCC warnings about indentation.
2022-03-08 19:00:00 -05:00
David Ward 23addf5590 sm3840: Fix argument types for variadic function
Values of type unsigned char are automatically promoted to a larger
integer type, so they cannot be used as variadic function arguments.
2022-03-08 19:00:00 -05:00
David Ward 4cf3b09e49 rts8822, rts8891: Replace abs() with fabs() where needed
abs() has an integer parameter and returns an integer value. Floating-
point values should be passed to fabs() instead.

In particular, this affected calculations for gain and offset, where a
value with floating-point precision is clearly expected.
2022-03-08 19:00:00 -05:00
David Ward e859ea4d89 pieusb: Add missing calls to sanei_pieusb_convert_status()
Fix cases where values of type PIEUSB_Status were used or returned when
the expected type was SANE_Status.
2022-03-08 19:00:00 -05:00
David Ward f8785fb6a8 mustek_pp: Handle status argument correctly in pa4s2_init()
Currently the pointer itself is overwritten, when it is intended that
the pointer be derefenced first.
2022-03-08 19:00:00 -05:00
David Ward f651d6f098 microtek: Fix null termination of string, and adjust buffer lengths
The Product Revision Level field in the SCSI inquiry data has a fixed
length of 4 bytes. When copying it as a null-terminated string, place
the null terminator in the correct position; currently the string has
an extra character that is never initialized in memory.

Reduce the length of each string buffer, so it does not extend beyond
the null terminator.
2022-03-08 19:00:00 -05:00
Ralph Little 95e2498fe9 Merge branch 'canon_pp-weights-file' into 'master'
canon_pp: Avoid buffer overflow if pathname exceeds PATH_MAX

See merge request sane-project/backends!702
2022-03-14 00:25:02 +00:00
Ralph Little 7cdd2ad268 Merge branch '580-canoscan-lide-220-aborts-before-end-of-4800dpi-colour-scan' into 'master'
Resolve "Canoscan LiDE 220 aborts before end of 4800dpi colour scan"

Closes #580

See merge request sane-project/backends!697
2022-03-10 01:31:01 +00:00
Ralph Little 2d49a2af65 Merge branch 'pixma-fix-max-resolution' into 'master'
pixma:Fix max resolution

See merge request sane-project/backends!703
2022-03-10 01:29:59 +00:00
Ordissimo e5ff5d06e5 pixma:Fix max resolution 2022-03-10 01:29:59 +00:00
Ralph Little 84e907f87c Merge branch 'resolve-sane-desc-warnings' into 'master'
descriptions: Resolve multiple warnings from sane-desc

See merge request sane-project/backends!698
2022-03-09 03:51:08 +00:00
David Ward 0c70fd560c canon_pp: Avoid buffer overflow if pathname exceeds PATH_MAX
If the weights file pathname is longer than PATH_MAX, it may be written
past the end of the buffer on the stack; or it may be truncated when it
is written to allocated memory (such that it is not null-terminated).

Adjust the code to fix both issues. Dynamically allocate memory for the
actual length of the pathname so that it is not constrained by PATH_MAX.
2022-03-08 19:00:00 -05:00
Ordissimo 9cd8f475eb Merge branch 'escl-add-canon-ts-3400-series' into 'master'
escl: Add canon TS-3400 series

See merge request sane-project/backends!700
2022-03-08 08:59:43 +00:00
Ordissimo 84a39145e4 escl: Add canon TS-3400 series 2022-03-08 08:59:43 +00:00
David Ward e1a319e729 descriptions: Resolve multiple warnings from sane-desc
Fix the USB VID/PID in device descriptions to use lowercase hex digits.
Remove an extraneous description, having no name or USB VID, from the
epsonds file. Remove an extraneous interface in the description for the
Brother MFC-J1300DW.

Additionally, fix mispellings of "Flatbed" and "WiFi".
2022-03-02 21:16:33 -05:00
Ralph Little 41866df6e1 genesys: fix for computation of total file size exceeding unsigned
Large scans that exceed 32-bits need cast to allow 64-bit size.
2022-02-27 18:55:26 -08:00
Ralph Little 4091619e07 Merge branch '577-add-plustek' into 'master'
Resolve "Issues making on osx"

Closes #577

See merge request sane-project/backends!696
2022-02-25 02:31:18 +00:00
Ralph Little 9512d05fe6 genesys: added conf entry for Plustek OpticFilm 7600i
User reports scanner works fine, but entry missing from config.
2022-02-22 16:22:23 -08:00
Ralph Little aa153e52c8 Merge branch '577-issues-making-on-osx' into 'master'
Resolve "Issues making on osx"

Closes #577

See merge request sane-project/backends!694
2022-02-22 17:37:48 +00:00
Ralph Little 047fa8498f Resolve "Issues making on osx" 2022-02-22 17:37:48 +00:00
Ralph Little f6594ed040 Merge branch '573-hp5590-read-only-values-aren-t-accessible-via-cli-options-unrecognized-option' into 'master'
Resolve "[hp5590] Read only values aren't accessible via CLI options (unrecognized option)"

Closes #573

See merge request sane-project/backends!693
2022-02-21 22:13:28 +00:00
Ralph Little a0ca5a4fc4 Resolve "[hp5590] Read only values aren't accessible via CLI options (unrecognized option)" 2022-02-21 22:13:28 +00:00
Ralph Little 312edd6d5f doc: Added Plustek OpticSlim 550 description, unsupported as yet 2022-02-19 14:25:13 -08:00
Ralph Little b701c499c9 Merge branch 'sane-find-scanner-output' into 'master'
sane-find-scanner: Improve output for possible USB scanners

Closes #575

See merge request sane-project/backends!691
2022-02-17 16:48:23 +00:00
David Ward 9daadb8512 sane-find-scanner: Improve output for possible USB scanners
Closes #575
2022-02-17 09:16:30 -05:00
Ralph Little 3c3e898c5e Merge branch 'fix-install-exec-target' into 'master'
backend/Makefile: Fix installation of backend libraries

See merge request sane-project/backends!690
2022-02-07 20:58:45 +00:00
David Ward ba07a8a7f5 backend/Makefile: Fix installation of backend libraries
When using Automake variables like sanelib* to install files in a custom
directory, the files are assumed to be platform-independent, unless these
variables contain "exec" in the name. This affects whether the files are
installed during "make install-data" or "make install-exec". It does not
matter whether a suffix like _DATA or _LTLIBRARIES is added to this name.

The packaging scripts for Debian call those Makefile targets separately
and are affected by this behavior. Since the backend libraries themselves
are platform-dependent files, rename these variables to execsanelib*.
2022-02-06 23:02:01 -05:00
Povilas Kanapickas e1f1273d23 Merge branch 'genesys_gl845_crash' into 'master'
genesys: GL845 has vector size 257 as well

See merge request sane-project/backends!688
2022-01-28 20:54:52 +00:00
Povilas Kanapickas 2f17613dbb genesys: Simplify gamma buffer setup
This also makes sure that we never access the source gamma tables out of
bounds which was possible previously.
2022-01-28 22:39:26 +02:00
Povilas Kanapickas 188cf63627 genesys: Simplify interface of generate_gamma_buffer() 2022-01-28 22:39:26 +02:00
Zdenek Dohnal d8ebd5a4d7 genesys: GL845 has vector size 257 as well
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=2042316
2022-01-28 22:31:09 +02:00
Povilas Kanapickas e3b5a9686f Merge branch 'release-notes-1.1.1' into 'master'
NEWS: Release notes for 1.1.1

See merge request sane-project/backends!687
2022-01-28 20:02:25 +00:00
Povilas Kanapickas c46f006209 NEWS: Release notes for 1.1.1
(cherry picked from commit a00a5f2f2c)
2022-01-20 00:08:17 +02:00
Povilas Kanapickas 156337e5cd Merge branch 'fix-distcheck' into 'master'
testsuite: Allow any 1.x.y version when comparing sane-desc results

See merge request sane-project/backends!686
2022-01-19 15:47:01 +00:00
Povilas Kanapickas 5529eb73d7 testsuite: Allow any 1.x.y version when comparing sane-desc results 2022-01-19 17:31:28 +02:00
Povilas Kanapickas b09575f6be Merge branch 'releasing-procedure' into 'master'
Update releasing procedure

See merge request sane-project/backends!682
2022-01-18 20:28:06 +00:00
Povilas Kanapickas 0ac693c2c7 doc: Update the releasing documentation 2022-01-18 22:12:19 +02:00
Povilas Kanapickas e3b847e981 newsfragments: Document the misc news fragment type 2022-01-18 22:12:18 +02:00
Povilas Kanapickas 3e1de72bcb Setup release notes build using towncrier 2022-01-18 22:12:17 +02:00
Povilas Kanapickas 3f955dd532 Merge branch 'make-jpeg-compression-optional' into 'master'
xerox_mfp: make JPEG compression user-configurable

See merge request sane-project/backends!615
2021-12-30 18:50:56 +00:00
Povilas Kanapickas 64bfc68a39 Merge branch 'genesys-remove-gpl-exception' into 'master'
genesys: Remove several accidental edits

See merge request sane-project/backends!680
2021-12-30 18:37:30 +00:00
Povilas Kanapickas 1a66f8c553 Add newsfragment 2021-12-30 20:35:03 +02:00
Andrew Sayers a336f5ed2f xerox_mfp: make JPEG compression user-configurable
JPEG compression improves scan time, and some scanners require it
for high DPI values.  But it loses some data, and we already support
toggling it at compile-time.

Add an advanced option so users can decide at scan-time.
2021-12-30 20:34:05 +02:00