[sane-devel] (patch) Small fixes for canon630u, coolscan and microtek2

Frank Zago fzago@austin.rr.com
Fri, 04 Oct 2002 18:31:08 -0500


Petter Reinholdtsen wrote:
> [Frank Zago]
> 
>>What's the point of this one?
> 
> 
> If sizeof(size_t) is bigger then sizeof(u_int32_t), than the call to
> sanei_scsi_cmd() will write outside the space allocated for
> ms->n_control_bytes.  If it is smaller, the value in
> ms->n_control_bytes will be wrong.  It only work as it should if
> size_t and u_int32_t is the same type.  This is not the case on 64-bit
> machines.

Hi Petter,

That's definitively a bug to fix. However you're creating and setting a 
variable. But you're not using it!

Frank