bp1@ubuntutest:~/c/comedirecord-1.2$ uname -a
Linux ubuntutest 3.2.0-23-generic-pae #37~lp981234v1 SMP Sat Apr 14 03:45:23 
UTC 2012 i686 i686 i386 GNU/Linux
bp1@ubuntutest:~/c/comedirecord-1.2$ 


I've tested it with comedirecord and it works both the limit to 20M and also it 
becomes already nicely stable with the default setting of 2M.

                fprintf(stderr,"/dev/comedi%d has a buffer of %d\n",devNo,
                        comedi_get_buffer_size(dev[devNo],subdevice));
                comedi_set_buffer_size(dev[devNo],subdevice,10000000);
                fprintf(stderr,"/dev/comedi%d has a buffer of %d\n",devNo,
                        comedi_get_buffer_size(dev[devNo],subdevice));

bp1@ubuntutest:~/c/comedirecord-1.2$ ./comedirecord 
/dev/comedi0 has a buffer of 2097152
/dev/comedi0 has a buffer of 2097152
bp1@ubuntutest:~/c/comedirecord-1.2$ make
make: Nothing to be done for `first'.
bp1@ubuntutest:~/c/comedirecord-1.2$ make
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_GUI_LIB -DQT_CORE_LIB 
-DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore 
-I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -o comediscope.o comediscope.cpp
g++  -o comedirecord comedirecord.o comediscope.o iirnotch.o gain.o 
ext_data_receive.o dc_sub.o moc_comedirecord.o moc_comediscope.o moc_gain.o 
moc_dc_sub.o    -L/usr/lib/i386-linux-gnu -lcomedi -lQtGui -lQtCore -lpthread 
{ test -n "" && DESTDIR="" || DESTDIR=.; } && test $(gdb --version | sed -e 
's,[^0-9]\+\([0-9]\)\.\([0-9]\).*,\1\2,;q') -gt 72 && gdb --nx --batch --quiet 
-ex 'set confirm off' -ex "save gdb-index $DESTDIR" -ex quit 'comedirecord' && 
test -f comedirecord.gdb-index && objcopy --add-section 
'.gdb_index=comedirecord.gdb-index' --set-section-flags '.gdb_index=readonly' 
'comedirecord' 'comedirecord' && rm -f comedirecord.gdb-index || true
bp1@ubuntutest:~/c/comedirecord-1.2$ ./comedirecord 
/dev/comedi0 has a buffer of 2097152
/dev/comedi0 has a buffer of 10002432

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/981234

Title:
  buffer overflows in comedi drivers

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/981234/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to