Re: Buffer Overflows on PCI-DAS1602/16

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 21 November 2002 08:00 am, Daniel Koch wrote:
>
> BTW, Frank, I already tried sending the data directly to a file but then I
> got several buffer underuns before I get a final buffer overflow... This
> happens when I set the buffer to the maximum size. If set the buffer too
> small then I get a simple buffer overflow.
>

What do you mean buffer underrun?  The only thing reading data is your user 
space program.  By the way, just to make sure things are clear for you: if 
you are having hardware/dma problems with the das16 driver they will appear 
as missing/corrupt data.  Comedi will not report any errors in this case, due 
to the fact that das16 boards don't provide any status bits for determining 
the state of their fifos so there is no way for the driver to know if it has 
overrun.  You might have better luck using the mmap.c from cvs, it will work 
correctly (at least until you get an integer overflow after reading 2 
gigabytes at which point it will exit ).

- -- 
Frank

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE93UWN5vihyNWuA4URAg9YAKDNz+V2V0KrmixMlnfHk6Wj7fS03wCeLgdy
4uwwuRMLroPKG01r185C8x4=
=sE0Q
-----END PGP SIGNATURE-----

Received on 2002-11-21Z20:43:55