From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2659 invoked by alias); 6 Mar 2017 20:01:48 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 40775 Received: (qmail 21485 invoked from network); 6 Mar 2017 20:01:48 -0000 X-Qmail-Scanner-Diagnostics: from mail-qk0-f178.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.220.178):SA:0(1.3/5.0):. Processed in 3.20074 secs); 06 Mar 2017 20:01:48 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=DATE_IN_PAST_12_24, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RCVD_IN_SORBS_SPAM, SPF_PASS,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.220.178 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ZzqCgGFS7RdrdiPKwcXrQ+mQXfw+M2sd5T7aIKgcDYs=; b=croCVJwnWrRXSpmMMK9zxU1pAmgsvwRMedDv8hTGJ7GlgjM+vtIgx8JsSK2ODiDVtQ qbpgQfOqZl7x2L4zPrBUkSaz0ZO9ZfwuyLc17phOk98a6B6urLXVYZuMmH2G1fIsm3uc SPNJi1IBq5mQtl74mSRLX8OHPpeSF0SveErQ93XoH8ucF4t0kMaFcxzemP+IPTr1nosV KGxB9n7jOloiEAp1QxNzATyaYMJ4gGkWazHyduTeviLGXcMSxDzAuzG3qkj/MTd7KYjI n9zsue7i/VpJTCYbw9a3r2oHbLNJsvsiUgkXI01TXaio9fDQIT4h8jlN0J+ZufOrtlgM TxEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ZzqCgGFS7RdrdiPKwcXrQ+mQXfw+M2sd5T7aIKgcDYs=; b=Km9GpsqCeVQSsG1G3vgvdk98C0cKh8UApaSCgFAy3wW1NVpzZEtoMMF514zz0JxG4o icmBBNqr/4iVLDDQzCuRbhaeP/LZOzsXypUk2XcFu0YeEN+yS7DpMinXyFazbS7FPon6 1s37SXZ2IEy0Tb64kcJu86UeUSuu6gPle4/TGjuMm1oXO18XPdjyYz5egzQqdJkfh2Sp oAldJSLfEWJTJf61VJ7S9Hjxwds/N1wTHRTD+IPo8jL6wBh+yH9w5NmL2GyfagNLuTdp hSLJEAEXhhRbs1813KgnCQ7X08NMzeJCIg/QYrGIUiwxoEZMABvVSxbz+6xwnkScujxx yKTg== X-Gm-Message-State: AMke39k92eyM6IYs4DaTT4Y6/kJD4KMri3XCy53/irdNwAD7U2wRXQD0bHz6pV+aJRMocnrD586apzPh+FZDGQ== X-Received: by 10.200.37.50 with SMTP id 47mr12738423qtm.233.1488754278072; Sun, 05 Mar 2017 14:51:18 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20170305224100.GA18432@fujitsu.shahaf.local2> References: <170304151137.ZM30694@torch.brasslantern.com> <170305080054.ZM24832@torch.brasslantern.com> <20170305161720.6f3773d6@ntlworld.com> <170305104239.ZM25231@torch.brasslantern.com> <5096E600-D76C-4F71-BE93-C46F256BA7D7@ntlworld.com> <170305134513.ZM26364@torch.brasslantern.com> <20170305224100.GA18432@fujitsu.shahaf.local2> From: Bart Schaefer Date: Sun, 5 Mar 2017 14:51:17 -0800 Message-ID: Subject: Re: [BUG] SIGSEGV under certain circumstances To: Daniel Shahaf Cc: "zsh-workers@zsh.org" Content-Type: text/plain; charset=UTF-8 On Sun, Mar 5, 2017 at 2:41 PM, Daniel Shahaf wrote: > > The part that confuses me is why the line says 'mp += cl' rather than > simply 'mp++'. The inner loop executes precisely 'zl' times (because > the loop variable, 'tl', is initialized to 'al' and skips Meta bytes), > and 'mp' points into an array of size 'zl'. Yes, that's the part that confuses me as well, i.e., why is mb incremented once for every byte rather than once for every character?