* fhandler_clipboard.cc (fhandler_dev_clipboard::open): Drop gratuitios

handling of membuffer.  It's NULL anyway.
	(fhandler_dev_clipboard::lseek): Set membuffer to NULL after freeing
	it to avoid subsequent crashes when accessing invalid pointer.
This commit is contained in:
Corinna Vinschen
2013-10-25 15:04:24 +00:00
parent 494c626414
commit f0b101007a
3 changed files with 13 additions and 4 deletions

View File

@@ -26,3 +26,5 @@ Bug fixes:
- Properly set process sid rather than always using -1.
Fixes: http://cygwin.com/ml/cygwin/2013-10/threads.html#00237
- Fix a potential crash after calling lseek on /dev/clipboard.