Esme Povirk (@madewokherd) commented about dlls/sane.ds/ds_image.c:
return TWRC_FAILURE; }
while (i>=-1){/* Some backends can deliver more data than requestes, especially* in ADF-Mode.* Dummy-Read until EOF, else the rest of the image might be read* as another (nearly empty) frame. Observed with brscan4 driver */
In ADF mode, the height reported by the driver could be a guess, right? If someone puts in a shorter or taller page than expected, there's no way to know that until it reaches the end of the scan.
Should we account for this and return a different sized DIB?