From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: netsec 682578f 4/6: Add option to bypass NSM TLS checks on local networks Date: Tue, 17 Jul 2018 20:15:17 +0300 Message-ID: <83in5d7pi2.fsf@gnu.org> References: <20180714170806.8972.58581@vcs0.savannah.gnu.org> <20180714170809.C3A3920456@vcs0.savannah.gnu.org> <87o9f84t89.fsf@gmail.com> <4C758D1D-7C3A-425A-852F-75E03C779E01@gmail.com> <87va9fs3ro.fsf@gmail.com> <83tvoz8bus.fsf@gnu.org> <87fu0jrvye.fsf@gmail.com> <83in5f833i.fsf@gnu.org> <87pnzm8989.fsf@gmail.com> <83o9f57tfz.fsf@gnu.org> <87va9dg8oa.fsf@gmail.com> <87r2k1g7ka.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1531847594 3525 195.159.176.226 (17 Jul 2018 17:13:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 17 Jul 2018 17:13:14 +0000 (UTC) Cc: emacs-devel@gnu.org To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 17 19:13:09 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ffTX8-0000m3-VU for ged-emacs-devel@m.gmane.org; Tue, 17 Jul 2018 19:13:07 +0200 Original-Received: from localhost ([::1]:60602 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ffTZF-00077G-Lq for ged-emacs-devel@m.gmane.org; Tue, 17 Jul 2018 13:15:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34092) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ffTZA-00075m-49 for emacs-devel@gnu.org; Tue, 17 Jul 2018 13:15:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ffTZ5-0006yS-5L for emacs-devel@gnu.org; Tue, 17 Jul 2018 13:15:12 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42164) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ffTZ5-0006yM-1F; Tue, 17 Jul 2018 13:15:07 -0400 Original-Received: from [176.228.60.248] (port=3187 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ffTZ4-0002LK-Cb; Tue, 17 Jul 2018 13:15:06 -0400 In-reply-to: <87r2k1g7ka.fsf@gmail.com> (message from Robert Pluim on Tue, 17 Jul 2018 18:17:57 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:227505 Archived-At: > From: Robert Pluim > Date: Tue, 17 Jul 2018 18:17:57 +0200 > > I couldn't get my original to fail with a unibyte string. Turns out > that even though size_byte is indeed -1 for unibyte strings, in that > case SBYTES returns the size field: > > ptrdiff_t nbytes = s->u.s.size_byte < 0 ? s->u.s.size : s->u.s.size_byte; Ah, yes. I keep forgetting that. Which is one more reason not to rely on that, if you ask me ;-)