Wykres commitów

102 Commity (master)

Autor SHA1 Wiadomość Data
Wolfram Sang 911be8af68 Merge branch 'cleanup_major_minor' into 'master'
treewide: use SANE_CURRENT_* macros consistently

See merge request sane-project/backends!632
2021-06-19 19:43:38 +00:00
Wolfram Sang 63942f7a74 gt68xx: fix use-after-free and two mem leaks
The config file argument needs to be freed when a device is not set.
That was missed for two occasions. The other occasion was freeing it
unconditionally leading to a use-after-free for the regular use case.

Fixes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=980311

This is the least intrusive fix. The code really wants to be refactored.
Tested with a Mustek 1200 UB Plus.
2021-06-10 11:36:11 +02:00
Wolfram Sang eb42ad08d5 treewide: use SANE_CURRENT_* macros consistently
Backends use a mixture of SANE_CURRENT_{MAJOR | MINOR} and V_{MAJOR |
MINOR} with all kind of permutations. I was confused by this and one
comment in pieusb.c tells me I was not alone. Some items in old
changelogs suggest to use the SANE_CURRENT_ macros in backends, so let's
switch to do that with the exception of net.c and dll.c. Done with:

$ find backend -name '*.[ch]' | xargs sed -i '/nearly every/ ! { s/\<V_M/SANE_CURRENT_M/g }'
$ git checkout backend/net.c backend/dll.c

And manually removing the comment from pieusb.c. Everything still builds
fine.
2021-06-08 19:01:41 +02:00
Olaf Meeuwissen e79adde8b2
Use URL to refer users to copies of the GPL and LGPL
With the exception of use in three quotes as well as our inlcuded copy
of the GPL, all use of the Free Software Foundation's postal address
has been removed.

Re #320.
2021-02-12 17:41:38 +09:00
Peter Marschall cbbfcd1121 spelling fixes for gt68xx backend 2020-08-29 09:18:03 +02:00
Ralph Little 5dd9eeb083 gt68xx: Restore cancel "stop_scan" call and fix whitespace issue
The original issue that I had with this patch was in the cancel function
where the patch author had commented out the "stop scan" call for cancel.
This made no sense to me. I have put it back in for testing.
It might have been accidentally left out.
2020-07-26 11:19:31 -07:00
Ralph Little 462419cc68 gt68xx: Initial check-in of proposed patch for crash.
Ulf and I will review and test this patch on this branch.
It does seem to fix the issue, but I want to check it out a little more
before we commit it to master.
2020-07-26 11:02:40 -07:00
Ralph Little 3d12424961 gt68xx: suppressed strncpy compiler warnings. 2019-12-21 22:53:16 -08:00
Ralph Little a4360b0a75 gt68xx: suppress snprintf warning with return length check. 2019-12-21 22:07:39 -08:00
Ralph Little fdc23d129a 1) Correct some spelling mistakes
2) Convert some British spellings to US
3) Modified some longer sentences to improve readability.
4) Modified en_GB to suit
2019-08-05 20:54:18 -07:00
Olaf Meeuwissen c6bfe88c31 Update mailing lists addresses to new location 2018-04-18 21:36:00 +09:00
Olaf Meeuwissen ed0062d474 gt68xx: Fix [-Wunused-const-variable=] compiler warning
The options that used offset_range were removed in a3a8808b.
2017-06-26 11:02:50 +09:00
Olaf Meeuwissen fc4b250a09 .editorconfig: use utf-8 charset throughout 2017-05-29 21:14:30 +09:00
Olaf Meeuwissen 23891a2646 .editorconfig: trim trailing whitespace 2017-05-29 21:14:29 +09:00
Jörg Frings-Fürst e21bb28e50 Source code string typo fixes 2017-05-13 18:38:43 +09:00
Stéphane Voltz a056cb238e handle scanner unplugging detection 2013-03-29 22:02:50 +01:00
Stéphane Voltz e0e19b413e handle scanner hot-plug in sane_get_devices
- rescan usb bus
- rescan for new devices
2013-03-29 21:54:46 +01:00
Stéphane Voltz 2190d18a63 move device detection in a dedicated function
- create a probe_gt68xx_devices() function that ssearch and attach
  matching scanners
2013-03-29 21:54:32 +01:00
Stéphane Voltz c025a47671 fix compile warning 2013-03-29 21:53:16 +01:00
Stéphane Voltz 6a8469dd13 use sanei_usb_exit() 2013-03-29 21:53:05 +01:00
Ruediger Meier 5311781404 cleanup, uniq PATH_SEP defines
Always use the same portable PATH_SEP define (note _WIN32
is not defined on cygwin).
2012-01-21 22:02:20 -06:00
Julien BLACHE fb05cbf864 gt68xx: fix possibly uninitialized variable 2010-06-23 18:21:36 +02:00
Stéphane Voltz ff0fb4ba9c use document presence detection before scans for sheetfed scanners 2009-11-30 21:48:16 +01:00
Stéphane Voltz 157587e90e add page loaded sensor option
- add page loaded sensor option
- detect page loaded status by usign '0x59' request
2009-11-30 21:36:12 +01:00
Stéphane Voltz 36ea76f5a8 fix clear calibration and need calibration options 2009-11-29 21:19:56 +01:00
Stéphane Voltz 5d1ebac8e3 initialize clear and need claibration options 2009-11-29 21:19:56 +01:00
Stéphane Voltz 03ac144ac8 add clear calibration butto and need calibration sensor
- add a 'clear calibration' to clear sheetfed calibration
- add a 'needs calibration' sensor to signal that a sheetfed scanner
  needs to be calibrated
2009-11-29 21:19:56 +01:00
Stéphane Voltz f0269dda83 update copyright notice for sheetfed calibration code 2009-11-28 13:54:22 +01:00
Stéphane Voltz 57634a7ec9 fix first scan uncalibrated
- compute parameters before restoring calibration
- some memleak fixes
2009-11-28 07:32:39 +01:00
Stéphane Voltz 014e14e953 calibration persistence in file
- added read/write calibration functions
- call write calibration at the end of calibration
- call calibration read at sane open
2009-11-28 07:29:52 +01:00
Stéphane Voltz 9154cb7ee1 initialisation fixes spotted by valgrind 2009-11-28 07:29:52 +01:00
Stéphane Voltz c951328202 working full width in memory calibration
- added debug traces and calibration image files
- tuned default OpticSlim M12 exposure parameters
- bug fixes to make calibration work in memory
2009-11-28 07:29:51 +01:00
Stéphane Voltz 90e5b6427d add 'gt68xx' as default name for first available scanner 2009-11-28 07:20:58 +01:00
Stéphane Voltz 30d2fc7ec3 calibration for all modes groundwork
- GT68xx_Scanner is extended to hold calibration data for all
  resolutions
- gt68xx_sheet_fed_calibrate loops over all resolution and color
  mode, and stores result in scanner struct
- calibrators are created from stored data before each scan
2009-11-28 07:20:58 +01:00
Stéphane Voltz fa014b99e7 add an OPT_CALIBRATE option
- add an OPT_CALIBRATION option
- call gt68xx_sheetfed_scanner_calibrate() when the OPT_CALIBRATE
  option is set
2009-11-28 07:20:57 +01:00
Stéphane Voltz f67da24316 add GT68XX_FLAG_HAS_CALIBRATE flag
- add a flag to handle the case of sheetfed scanners that will be
  calibrated using a dedicated function that uses an external
  calibration sheet
- enable image OPT_QUALITY_CAL for scanners with
  GT68XX__FLAG_HAS_CALIBRATE
2009-11-28 07:12:07 +01:00
Stéphane Voltz 8eca0a163a call y move to scan area before final scan if needed 2009-11-23 05:51:46 +01:00
chris@cnpbagwell.com 4d9e8138af standardize including local sane/ include files.
Source code was inconsistent on how they were referencing
include files in include/sane.  In certain cases, sane/sane.h
and sane/saneopts.h was really including external copies (with
some preprocessor implementations anyways).
2009-05-07 22:06:20 -05:00
Chris Bagwell 70f3fdfba4 * acinclude.m4, backend/*.[ch], tools/*.[ch], frontend/*.[ch]:
Global replace of u_int??_t with C9x standard based uintxx_t
 in order to remove some tricky and overlapping portability logic
 from acinclude.m4 and leave it in only m4/stdint.m4.
2009-02-26 03:15:43 +00:00
m. allan noah 91598aa800 * backend/*.[ch]: nearly every backend used V_MAJOR
instead of SANE_CURRENT_MAJOR in sane_init()
* backend/snapscan.c: remove EXPECTED_VERSION check
since new SANE standard is forward compatible
2008-11-26 21:21:31 +00:00
Henning Geinitz 4b83c2d24c Added Artec Ultima 2000 e+, Nortek Myscan 1200, NeatReceipts Scanalizer
Professional, Genius Colorpage Slim-1200. Name and email address changes.
2007-08-19 13:30:46 +00:00
Henning Geinitz 313a5f80b6 Added .conf entry for Pluste OpticPro S12 and S24. Updated .desc file. 2007-01-28 15:58:40 +00:00
Henning Geinitz 2df19bcd0b Added Support for Genius Colorpage SF600. 2006-10-03 21:24:39 +00:00
Henning Geinitz 6e29f278bd Added support for Plustek OpticPro S24 (some models). Added .conf entry for
Plustek OpticPro S12.
2006-05-21 16:50:30 +00:00
Henning Geinitz e891ffb8ab Added Plustek OpticPro S(T)12 (product id 0x040b). Mostly untested. Print warmup
message 5 seconds after starting the warm-up.
2006-01-02 16:59:03 +00:00
Henning Geinitz 7d332297b6 Silenced non-fatal warnings/error messages. Several fixes for avoiding
freezes/timeouts after cancelling a scan. Several fixes for warming up of
lamp. Decreased scan width of Plustek OpticPro 1248U.
2005-12-09 11:55:11 +00:00
Henning Geinitz f8d48dc09d Minor modifications to sheet-fed scanner support. 2005-10-16 12:47:37 +00:00
Henning Geinitz fb40be18dc Added support for Plustek OpticSlim M12 (untested). Based on patch from Gerhard
Jaeger <gerhard@gjaeger.de>. Fixed gt68xx homepage links in man page. Changed
minimum version of libusb to 0.1.8.
2005-09-29 18:22:30 +00:00
Henning Geinitz 872c187d42 Fixed segfault that may happen with Mustek ScanExpress A3 USB. 2005-09-18 10:48:18 +00:00
Henning Geinitz aa209997b7 Genius ColorPage Vivid 1200 X is reported to work. Genius ColorPage Vivid 4 XE
seems to be the same as 4 X, it just doesn't have buttons. Cleanup of .desc
file. Fixed gain setting. Mustek ScanExpress A3 USB 600 dpi color scanning works
now.
2005-09-01 20:01:50 +00:00