comedilib/testing
Ian Abbott 261d3e1029 comedi_test: Fix buffer overrun in test_mmap()
If the command does not stop immediately after the last sample, there
can be more data to read than we have room for.  Make sure the 'while'
loop 'read()' does not overrun the end of the malloc'ed 'buf'.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
2011-06-27 13:03:03 +01:00
..
results new files 2003-11-20 18:40:30 +00:00
bufconfig.c additional tests, fixes, move some functions to ../lib 2001-05-28 02:39:00 +00:00
cmd_1.c Replaced a perror with comedi_perror 2008-03-28 15:55:03 +00:00
cmd_2.c Don't use SDF_WRITEABLE flag to check if read (or write) command is 2008-01-28 16:10:11 +00:00
cmd_3.c Fixed comedi_get_cmd_generic_timed() by adding a chanlist_len 2007-08-02 19:46:44 +00:00
comedi_test.h comedi_internal_trigger is provided by comedilib now. 2008-01-28 20:38:47 +00:00
info.c Handle COMEDI_SUBD_PWM and check for future unknown subdevice types. 2008-11-05 11:40:42 +00:00
insn_read.c test reading 0 samples 2002-06-06 00:38:54 +00:00
insn_read_time.c Fix use of INSN_GTOD so it works on 64-bit platforms. 2007-11-07 13:01:50 +00:00
inttrig.c comedi_internal_trigger is provided by comedilib now. 2008-01-28 20:38:47 +00:00
lib.c staging area for moving functions from here to ../lib 2001-05-28 02:38:09 +00:00
main.c fixing includes for exit(), memset() for gcc 2.96 compiler warnings 2003-01-01 23:07:02 +00:00
Makefile.am need headers 2003-05-02 07:53:02 +00:00
mmap.c comedi_test: Fix buffer overrun in test_mmap() 2011-06-27 13:03:03 +01:00
mode0_read.c fix for compiler warning about strict aliasing rules 2004-06-19 19:55:26 +00:00
README testing additions 2000-11-30 22:57:04 +00:00
select.c Don't use SDF_WRITEABLE flag to check if read (or write) command is 2008-01-28 16:10:11 +00:00

The results directory contains last-known testing results that have
been contributed by users.  If your board is listed there,
please compare it the output of comedi_test and if it differs
significantly, send me a copy and/or diff.  I'll either update
the file, or it indicates that there is a bug.  If your board
is not listed here, send me a copy of the output so it can
be included.

comedi_test tends to create a lot of output.  The important
information has lines beginning with either I:, W:, or E:,
indicating information, warning, or error, respectively.
You can grep for this information using the regexp '^.:'.
Errors are usually problems that need to be fixed, but are
not necessarily significant bugs.  Warnings need to be
audited by ds to know whether or not they are significant,
since comedi_test isn't very smart about some checks.  (That's
why they're warnings and not errors.)