X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 224A63857C72
Authentication-Results: sourceware.org;
 dmarc=none (p=none dis=none) header.from=maxrnd.com
Authentication-Results: sourceware.org; spf=none smtp.mailfrom=maxrnd.com
Subject: Re: [ANNOUNCEMENT] Updated: cygutils 1.4.16-8 (Test)
To: cygwin@cygwin.com
References: <announce.20211103095939.14663-1-mark@maxrnd.com>
 <20211103220405.aae44a1ae1d3be96939a2ec9@nifty.ne.jp>
 <20211105122017.3c93edd3e86ce82f086098aa@nifty.ne.jp>
 <206bac56-73fd-074f-a6b7-77c36d28c3ba@maxrnd.com>
 <20211105170600.1f652492883ce09db9447e91@nifty.ne.jp>
From: Mark Geisert <mark@maxrnd.com>
Message-ID: <9c37dec7-ad00-a627-fb8d-714976e6b805@maxrnd.com>
Date: Fri, 5 Nov 2021 01:53:06 -0700
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101
 Firefox/52.0 SeaMonkey/2.49.4
MIME-Version: 1.0
In-Reply-To: <20211105170600.1f652492883ce09db9447e91@nifty.ne.jp>
X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
 KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, SPF_HELO_NONE, SPF_NONE,
 TXREP autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

Hi Takashi,

Takashi Yano via Cygwin wrote:
[...]
> I guess you just forgot to expand struct timespec in 32bit to
> 64bit layout in the following code.
> 
> -      if (cygNewFormat)
> +      if (cygNewFormat == 2)
>           {
>             cygcb_t *clipbufX = (cygcb_t *) clipbuf;
> +          clipbufX->cb_size = convlen;
> +          clock_gettime (CLOCK_REALTIME, &clipbufX->ts);
> +          memcpy (&clipbufX[1], convbuf, convlen);
> +        }
> +      else if (cygNewFormat == 1)
> +        {
> +          cygcb_old_t *clipbufX = (cygcb_old_t *) clipbuf;

I appreciate the assist.  I had just completed the needed builds when your message 
came in :-).  You are correct on the root cause.

I have tested and committed a fix to the cygutils git repository if you or anybody 
else needs the fix before -9 is released in a couple weeks:
https://cygwin.com/git?p=cygwin-apps/cygutils.git;a=commitdiff;h=ecb76449ca233873d01feacd3dfd22cbf7e95e34

Thanks & Regards,

..mark

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
