CvCaptureFilter patch against buffer overflow and rewind (rev. 393)
Posted: 21 May 2008 07:24 AM   [ Ignore ]
New Member
Rank
Total Posts:  1
Joined  2008-05-21

Hello everyone,

I just submit you a little patch against CvCaptureFilter.cpp, last svn version (rev 395).
The corrected bugs are :

* use of strcpy with a fixed buffer a 255 for the path of an avi file. The problem is that this path can be set form command-line (for example). We use strncpy instead
* cvSetCaptureProperty doesn’t seem to work properly in order to rewind an avi file. Indeed, the capture object is no more available. We reuse cvCaptureFromAVI instead.
* Just show an error message when cvCapture* fails.

In order to apply it :

* Go into your touchlib source directory and then :

path -p0 <touchlib-r395-cvcapturefilter.patch

[edit]
I made a mistake while making the patch. The new one works now.

File Attachments
touchlib-r395-cvcapturefilter.patch.gzip  (File Size: 1KB - Downloads: 44)
Profile