Wykres commitów

24 Commity (pixma-add-model-by-description)

Autor SHA1 Wiadomość Data
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
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
Mikolaj Kucharski 4196d204f1 drop more tricky Revision CVS keyword 2020-11-29 09:17:33 +00:00
Mikolaj Kucharski 7de7c051fa more CVS keywords removed, Log and Revision 2020-11-29 09:06:48 +00:00
Peter Marschall 0e8b1d0e89 spelling fixes for canon_pp backend 2020-08-29 09:18:03 +02:00
Olaf Meeuwissen 23891a2646 .editorconfig: trim trailing whitespace 2017-05-29 21:14:29 +09:00
Julien BLACHE 32f2a2da18 canon_pp: fix sane_init() DBG() call wrt function pointer cast to void * 2010-06-23 18:21:34 +02: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
Matthew Duggan db931572ef 2004-05-05 Matthew Duggan <stauff1@users.sourceforge.net>
* include/sane/saneopts.h: Added SANE_VALUE_SCAN_MODE_* strings.
	* backend/canon_pp.c: Used them.
2004-05-05 00:26:42 +00:00
Matthew Duggan 34f8a413bf 2004-02-27 Matthew Duggan <stauff1@users.sourceforge.net>
* backend/canon_pp.c: Add more debug output to help resolve bug #300524
2004-02-26 22:05:21 +00:00
Matthew Duggan cb65a9a8bc 2004-01-31 Matthew Duggan <stauff1@users.sourceforge.net>
* backend/canon_pp.c: Remove more compile warnings.
2004-01-31 06:47:55 +00:00
Matthew Duggan 656a9d8be3 2004-01-12 Matthew Duggan <stauff1@users.sourceforge.net>
* backend/canon_pp-dev.c backend/canon_pp-io.c backend/canon_pp.c
          backend/canon_pp.h: Fix various compile warnings (Bug #300407).
          Also fix bug in parsing config file.
        * doc/descriptions/canon_pp.desc: Bump version number.
2004-01-11 22:24:07 +00:00
Matthew Duggan 27f0a37566 2003-07-29 Matthew Duggan <stauff1@users.sourceforge.net>
* backend/canon_pp.c: Reset globals in sane_exit.
2003-07-29 03:13:56 +00:00
Matthew Duggan 284233e77e * backend/canon_pp.c backend/canon_pp-dev.c backend/canon_pp-dev.h:
Finally fixed cancelling, which I broke some time ago in the quest
  for speed.  FB620P still doesn't abort nicely (firmware bug?).
* doc/sane-canon_pp.man: Added notes on FB620P problems.
* doc/descriptions/canon_pp.desc: Bumped version number.
2002-09-30 15:25:14 +00:00
Matthew Duggan 9fef620345 * backend/canon_pp.c backend/canon_pp.h backend/canon_pp.conf:
Added init_mode option to conf file for faster starts.
* doc/sane-canon_pp.man : Added description of init_mode option.
2002-09-17 10:33:22 +00:00
Matthew Duggan 51a3075282 * backend/canon_pp-dev.c backend/canon_pp-dev.h backend/canon_pp-io.c
backend/canon_pp-io.h backend/canon_pp.c backend/canon_pp.h:
  Fix init problem, add changes to facilitate configurable wakeup mode
  (for faster starts on FB360P and FB620P).
* doc/sane-canon_pp.man doc/descriptions/canon_pp.desc: Updates
  regarding FB310P and FB610P (rebadged Avisions)
2002-09-16 13:42:51 +00:00
Matthew Duggan f0722f0d5c Added support for FB620P to canon_pp backend. 2002-09-01 08:57:34 +00:00
Matthew Duggan 4a552e1540 * backend/canon_pp.c backend/canon_pp-dev.c backend/caon_pp-io.c
backend/canon_pp-dev.h: Many changes: Bug fixes, less memory leaks                                       (none left now?), more relaible, faster.  Biggest changes are                                            speculative reads (ask scanner to read more while data processing
occurs) and more reliable sending of commands.  Slight performance
increase over previous version.
* doc/sane-canon_pp.man: Added discussion noting that scanning
greyscale in green is bad for colour.
2002-08-07 07:56:12 +00:00
Matthew Duggan 68937254bf * backend/canon_pp.c: Now always uses as much scanner buffer as
possible, then feeds data to frontend.  Results in large speed
  increase in ECP mode.  Also fixed problems with saned compatibility.
* backend/canon_pp.h: Added bytes_sent to scanner data structure.
* doc/sane-canon_pp.man: Discuss hardware problems at high
  resolutions.
2002-07-27 08:03:16 +00:00
Matthew Duggan db89d5be3b * src/canon_pp.c: Now uses mm instead of pixel measurements, better behaved
in xsane etc as a result.
* src/canon_pp.h: Tweaked up max buffer size to size avaialable in hardware.
* doc/descriptions/canon_pp.desc: increment version no.
2002-07-25 17:45:29 +00:00
Matthew Duggan 488ed1e9f2 Workaround for ppdev bug, should work on more systems than before. 2002-06-29 09:25:11 +00:00
Henning Geinitz 8e952f2ec6 Changed timeouts and added scanner sleeps to improve reliability of 6x0P
models.  Also corrected typo which caused full bed scans to fail.  Disabled
problematic detect for now, will make detection slightly slower. Patch from
Matthew Duggan <stauff1@users.sourceforge.net>.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-04-07 11:20:46 +00:00
Henning Geinitz 42f9acfefd Added new canon_pp backend for the CanoScan FB330P, FB630P, N340P, and N640P
scanners. Patch from "Matthew Duggan" <stauff@guarana.org>.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-04-01 22:54:25 +00:00