[sane-devel] Xsane notes
Henning Meier-Geinitz
henning at meier-geinitz.de
Thu Nov 7 10:25:44 GMT 2002
Hi,
On Wed, Nov 06, 2002 at 10:17:44PM +0000, Major A wrote:
> Please bear in mind that, by convention, integers starting with "0"
> followed by another digit are taken to be octal numbers in most
> programs. Apparently, gqview simply does a strtol() on the line with
> the third parameter set to 0, thus realizing the first number in the
> line is octal. It stops when it encounters the "9", which is invalid
> in the octal base, the second strtol() then picks up at the
> "9". That's why the image size is taken to be 14 (which is 016 in
> octal) times 96.
Maybe that happened in the case described by the original author. I'm
using GQview 1.0.2 here and it detects the width and height correctly.
The crash happens when too much comments are used in the pnm. Looks
like a buffer overflow.
As this also happens with gqview 1.1.6, I'll write a bug report.
Bye,
Henning
More information about the sane-devel
mailing list