[sane-devel] genesys backend with focus on canoscan lide 200

Robert A. Schmied uwppp at flash.net
Thu May 24 18:47:25 BST 2018


sane backenders

ref: 1) compiler gcc (GCC) 4.9.0 ( $ gcc --version )
     2) platform solaris 10 sparc update 8
     3) sane-backends-1.0.27 via tarball dated 27 Apr 12:19


when i set envvar SANE_DEBUG_GENESYS > 6 scanimage (and probably
xsane as well) core dumps in backend/genesys.c function
sane_get_option_descriptor.  function starts at line 7070

it seems genesys is not setting opt[option].name anyplace?

this hack will work-around the core dumping, so while i don't
get the option name at least i can collect the other data that
gets enabled with higher values in envvar SANE_DEBUG_GENESYS.

(mimic'd diff)
  if ((unsigned) option >= NUM_OPTIONS)
    return 0;
+  if ( ! s->opt[option].name )
+    DBG (DBG_io2, "sane_get_option_descriptor: option = %d\n",
+         option);
+  else
    DBG (DBG_io2, "sane_get_option_descriptor: option = %s (%d)\n",
         s->opt[option].name, option);

now i'm sure this isn't a solution, but i don't see a good (correct)
place to set s->opt[option].name or scanner->opt[option].name for
the genesys backends.


aloha

ras



More information about the sane-devel mailing list