[sane-devel] bug #303798: possible buffer overflow in fujitsu.c

2006-09-04 Thread Johannes Meixner
Hello, On Sep 1 14:06 m. allan noah wrote (shortened): > > > https://alioth.debian.org/tracker/?group_id=30186&atid=410366&func=detail&aid=303798 ... > hmm, not as simple as that, afterall. johannes, i think your fix of asking for > 11 bytes will cause some older models of scanner to choke, as th

[sane-devel] bug #303798: possible buffer overflow in fujitsu.c

2006-09-01 Thread m. allan noah
>> right now I submitted >> https://alioth.debian.org/tracker/?group_id=30186&atid=410366&func=detail&aid=303798 >> >> But this does not mean that s->hw_ink_remain contains what is >> really intended - I don't know anything about Fujitsu scanners. > > oh, how embarassing :) yes, that buffer should

[sane-devel] bug #303798: possible buffer overflow in fujitsu.c

2006-08-31 Thread m. allan noah
On Thu, 31 Aug 2006, Johannes Meixner wrote: > > Hello, > > right now I submitted > https://alioth.debian.org/tracker/?group_id=30186&atid=410366&func=detail&aid=303798 > > I am not sure how to fix it. > > For the compiler it would be o.k. to simply use > unsigned char buffer[11]; > so th

[sane-devel] bug #303798: possible buffer overflow in fujitsu.c

2006-08-31 Thread Johannes Meixner
Hello, right now I submitted https://alioth.debian.org/tracker/?group_id=30186&atid=410366&func=detail&aid=303798 I am not sure how to fix it. For the compiler it would be o.k. to simply use unsigned char buffer[11]; so that s->hw_ink_remain = get_HW_ink_remain(buffer);