Re: make dll.c robust against it being listed in its configuration file...

From: Jochen Eisinger (jochen.eisinger@gno.de)
Date: Fri Oct 20 2000 - 00:40:53 PDT

  • Next message: Dietz Proepper: "Strange problem regarding remote scanning"

    Hi!

    [Petter Reinholdtsen]
    >
    > [Jochen Eisinger]
    > > What about just checking the backend name against "dll" while
    > > reading the dll.conf? This avoids that dll segfaults if dll is
    > > listed in the dll.conf.
    >
    > Why do dll segfault? Shouldn't this be fixed first?
    Because the dll - backend is loaded recursivly about 100.000 times...
    actually dll doesn't segfault, but sooner or later one of the backends
    segfaults when allocating new memory.

    > I have not tested the patch, but it looks OK to me. I only suspect it
    > might be the wrong fix. :-)
    Ok, might be... I've another fix: instead of linking libsane.* to
    sane/libsane-dll.* we could copy libsane-dll.* to libsane.* and remove
    the dll-backend from the lib/sane/ directory. This way, the dll-backend
    can't load itself (because it isn't present as a backend)

    what about this?

    -- jochen

    --
    Source code, list archive, and docs: http://www.mostang.com/sane/
    To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
    



    This archive was generated by hypermail 2b29 : Fri Oct 20 2000 - 00:33:39 PDT