Olaf Meeuwissen
20a0ed547e
[epson/epson2] Use separate lists of supported USB devices
...
The epson and epson2 backends shared a list of supported USB devices
generated from the epson2.desc file. The epson backend doesn't even
claim to support a large number of the devices listed there. This
change makes the backends use their own lists, generated from their
own *.desc files.
2015-09-19 13:39:37 -04:00
Olaf Meeuwissen
1c2b28307f
Prevent access to memory that was not allocated
2015-09-19 13:39:37 -04:00
Olaf Meeuwissen
f152b40faf
Prefer string concatenation over copying
...
The `ibuf.product` byte array may contain embedded NUL characters. In
that case the revision will not be visible as part of dev->sane.model.
2015-09-19 13:39:37 -04:00
Ilya Gordeev
16dc9c87a6
Fix memory clobbering issue in sane.model creation
2015-09-19 13:39:37 -04:00
Ilya Gordeev
98e4ee4084
Fix out-of-bounds array access
2015-09-19 13:39:37 -04:00
m. allan noah
a1a04f7462
Use c90 compatible comments
2015-09-19 13:39:37 -04:00
Olaf Meeuwissen
9dd31f977c
Move test on first array element into the loop
2015-09-19 12:02:57 -04:00
Sandro Mani
898270810d
Fix string type option descriptor's size value
2015-09-19 12:02:57 -04:00
Eduard - Gabriel Munteanu
ac1bf8d754
magicolor: add support for magicolor 4690MF
...
Currently, this works for USB, but the network OID needs to be
filled in properly.
Signed-off-by: Eduard - Gabriel Munteanu <edgmnt@gmail.com>
2015-09-19 12:02:57 -04:00
Eduard - Gabriel Munteanu
afd22f7722
magicolor: complete support for duplex ADF
...
This is needed to fully-support scanners like magicolor 4960MF.
Signed-off-by: Eduard - Gabriel Munteanu <edgmnt@gmail.com>
2015-09-19 12:02:57 -04:00
Eduard - Gabriel Munteanu
d0c3b22d7d
magicolor: fix USB device detection
...
Only the generic device was being picked.
Signed-off-by: Eduard - Gabriel Munteanu <edgmnt@gmail.com>
2015-09-19 12:02:57 -04:00
Rolf Bensch
348d59f859
fix typo in debug output
2015-09-18 08:55:25 +02:00
Rolf Bensch
d0745a10da
for all adf scanners restrict maximum page height for flatbed scans
2015-09-18 08:52:36 +02:00
Stéphane Voltz
2fd04ccf84
warning fixes
2015-09-16 18:57:03 +02:00
Stéphane Voltz
65747277cc
ifdef'ed temporaly disabled code since 2004
2015-09-16 18:38:11 +02:00
Stéphane Voltz
35d7d39550
Merge remote-tracking branch 'gitlab/pu/protect-niash-option-access-315132' into niash
2015-09-16 18:16:55 +02:00
Stéphane Voltz
45df679214
fix stdup declaration
...
- we need to include sane/config.h first to use strdup
2015-09-16 17:49:45 +02:00
Olaf Meeuwissen
db83bf44de
niash.c: Add argument screening to sane_control_option
...
This prevents access to non-existing array elements as well as
potential NULL dereferences.
Fixes #315132 .
2015-09-14 18:24:39 +09:00
Stéphane Voltz
6c7f9f6a3b
fix #300134 and file test logic
...
- mktmp never returns NULL, so test logic was borken
- use mkstemp instead of mktemp
2015-09-14 06:46:51 +02:00
Paul Newall
26572efbd1
redundant variable bitposn and redundant function kodakaio_rxflush commented out
2015-09-13 19:34:17 +01:00
Alessandro Zummo
2e15add10a
epsonds: fixed comment about usb ids format
2015-09-10 17:13:33 +02:00
Alessandro Zummo
d9e4ff311a
epson2: fixed comment about usb ids format
2015-09-10 17:12:32 +02:00
Alessandro Zummo
bd93d92a93
epson2: fix resolutions for Epson 4870/4990
2015-09-10 16:48:11 +02:00
Alessandro Zummo
a5c2607755
epson2: upated supported models
2015-09-10 16:09:40 +02:00
m. allan noah
f8725993d3
artec_eplus48u.c: fix HOME env bug #315071 (from Jörg Frings-Fürst)
2015-09-08 21:52:02 -04:00
Rolf Bensch
697d834023
Pixma backend version 0.17.22
2015-09-03 20:09:46 +02:00
Rolf Bensch
af4b717297
MP990 needs specific reordering pixels for 4800 dpi
2015-09-03 20:07:17 +02:00
m. allan noah
7566619e53
rebuild with automake 1.14.1
2015-08-31 20:58:30 -04:00
Yuri Chornoivan
648d933c56
Fix minor typos in messages and comments
2015-08-31 20:31:54 -04:00
Niels Ole Salscheider
e47cb8d2b4
Do not use STRINGIFY for LIBDIR but pass "LIBDIR" from build system
2015-08-31 20:31:54 -04:00
Klaus Kämpf
5337625f3a
New backend pieusb
...
This commit adds support for (slide) scanners based
on Pacific Image Electronics (PIE) oem scan hardware.
It is known to match the following USB scanners
PIE PowerSlide 3600 Untested
PIE PowerSlide 3650 Untested
PIE PowerSlide 4000 Untested
PIE PowerSlide 5000 Untested
Reflecta CrystalScan 7200 Untested
Reflecta ProScan 7200 Untested
Reflecta DigitDia 4000 Untested
Reflecta DigitDia 5000 Untested
Reflecta DigitDia 6000 Ok
The backend is based on work by Jan Vleeshouwers and Michael Rickmann.
Special thanks to Stéphane Voltz for the code review.
Add pieusb to backend/Makefile.am
Add pieusb to doc/Makefile.am
Add missing sanei/sanei_ir.c, sanei/sanei_ir.h, adapt Makefile.am
configure.ac: Add 'pieusb' to ALL_BACKENDS
ChangeLog: Add pieusb as new backend
Mark infrared functions as internal: sane_ir_* -> sanei_ir_*
sanei/sanei_ir.c: fix memory leaks
pieusb: rename cmdGetMode and cmdSetScanHead
... to their sanei_pieusb_cmd_... equivalent
pieusb: rename definition_list_head to pieusb_definition_list_head
Add pieusb to AUTHORS
pieusb: copyright 2012-2015
pieusb: don't include sanei_thread.h
2015-08-31 21:07:12 +02:00
m. allan noah
9ca9cd2f56
fujitsu backend v127
...
- separate iX100 from iX500 settings
- iX100 has gray and lineart
2015-08-25 19:49:37 -04:00
m. allan noah
8516da91b4
canon_dr backend v51
...
- DR-C125 does not invert_tly, does need sw_lut
2015-08-25 19:33:51 -04:00
m. allan noah
2cb3140903
fujitsu backend v126
...
- initial support for iX100
- add late_lut support for iX500/iX100
2015-08-23 20:52:49 -04:00
m. allan noah
2f68498ee5
canon_dr backend v1.0.50
...
- DR-C125 adds duplex padding on back side
- initial support for DR-C225
2015-08-23 20:52:49 -04:00
Rolf Bensch
12bca33625
Pixma backend version 0.17.21
2015-08-10 23:20:56 +02:00
Rolf Bensch
2f4c0c16c4
EOF is a bjnp timeout error
2015-08-10 23:19:58 +02:00
Stéphane Voltz
6e9f6de1bc
fix for #300132
...
- free memory allocated by sane_get_devices()
2015-08-10 21:49:38 +02:00
Stéphane Voltz
e8c11a0849
fix for #300131
...
- free memory allocated by sane_get_devices()
2015-08-10 21:47:41 +02:00
Stéphane Voltz
c3f0904b80
fix for #300130
...
- free memory allocated by sane_get_devices()
2015-08-10 21:42:09 +02:00
Stéphane Voltz
f73b2e3dbf
fix for #300129
...
- free memory allocated by sane_get_devices()
2015-08-10 21:38:16 +02:00
Stéphane Voltz
39695d73c2
fix for #300127
...
- free memory allocated by sane_get_devices()
2015-08-10 21:34:24 +02:00
Stéphane Voltz
7fb21d541a
fix for #300126
...
- free memory allocated by sane_get_devices()
2015-08-10 21:30:19 +02:00
Stéphane Voltz
5129434b99
fix for #300124
...
- free memory allocated by sane_get_devices()
2015-08-10 21:27:33 +02:00
Stéphane Voltz
0e78307bdc
fix for #300122
...
- free device list allocated in sane_get_devices()
2015-08-10 21:20:26 +02:00
Stéphane Voltz
c39bc5ac07
fix for #300121
...
- free device list allocated in sane_get_devices()
2015-08-10 21:18:15 +02:00
Stéphane Voltz
debdba5b8c
fix for #300120
...
- free device list allocated in sane_get_devices()
2015-08-08 22:04:37 +02:00
Stéphane Voltz
1f1385ea67
fix memleaks in pnm backend
...
- fix memleaks reported in bug #313553
2015-08-08 21:31:05 +02:00
Rolf Bensch
9188678fc0
Pixma backend version 0.17.20
2015-08-07 23:21:04 +02:00
Rolf Bensch
3133c5e17a
EOF isn't an usb timeout error
...
- this fixes usb communication problems e.g. with OpenSuse
- revoke parts of 3c5cc2a
and cea03f3
2015-08-07 23:19:33 +02:00