From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31851 invoked by alias); 17 Jun 2013 12:55:26 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 31842 invoked by uid 89); 17 Jun 2013 12:55:25 -0000 X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,TW_YG autolearn=ham version=3.3.1 Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 17 Jun 2013 12:54:55 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id B4A48520284; Mon, 17 Jun 2013 14:54:47 +0200 (CEST) Date: Mon, 17 Jun 2013 13:13:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: getclip and cygutils and cygcheck Message-ID: <20130617125447.GG21191@calimero.vinschen.de> Mail-Followup-To: cygwin@cygwin.com References: <0D835E9B9CD07F40A48423F80D3B5A7021C57FB3@USA7109MB022.na.xerox.net> <0D835E9B9CD07F40A48423F80D3B5A7021C58055@USA7109MB022.na.xerox.net> <51B8D19B.7080400@towo.net> <20130613095556.GA21638@calimero.vinschen.de> <20130614091553.GC4087@calimero.vinschen.de> <20130617101633.GC21191@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20130617101633.GC21191@calimero.vinschen.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2013-06/txt/msg00357.txt.bz2 On Jun 17 12:16, Corinna Vinschen wrote: > On Jun 14 23:15, Jeremy Hetzler wrote: > > After some testing, the limit seems to be 64k. It only happens when > > reading data that was copied to the clipboard by a Windows program (in > > this case Excel). > > [...] > > 583 $ cat /dev/clipboard >out.cat > > cat: /dev/clipboard: Bad address > > [...] > > Does that help? > > Yes, thank you. There was an ill-conceived check for the last character > in the buffer being a high surrogate UTF-16 character. It worked only > if the clipboard content was small enough to fit into a single read of > the application. If it was too big, and the application had to call > read again to fetch more from the clipboard, it tried to read the > character beyond the array boundary. I fixed that in CVS. I'll probably > create a new developer snapshot and a 64 bit test version later today. FYI, I'm just uploading a new developer snapshot 2013-06-17 to http://cygwin.com/snapshots/, as well as a new 64 bit Cygwin test release 1.7.21-4. Please give one of them a try. Thanks, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple