From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#56553: 29.0.50; ASAN error with fringe bitmaps on NS Date: Fri, 15 Jul 2022 16:46:19 +0200 Message-ID: <87ilny4eo4.fsf@igel.home> References: <83cze7u7b7.fsf@gnu.org> <8569ECF9-6D19-4DCB-854C-2755D182F8AF@gmail.com> <8335f3tz02.fsf@gnu.org> <87cze6okcy.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27713"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1.90 (gnu/linux) Cc: Po Lu , 56553@debbugs.gnu.org, Eli Zaretskii To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 15 16:47:17 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oCMb6-0006uJ-Pg for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Jul 2022 16:47:16 +0200 Original-Received: from localhost ([::1]:44192 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oCMb5-00020I-Li for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Jul 2022 10:47:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCMas-000207-Vf for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2022 10:47:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44203) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oCMas-0005U6-NX for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2022 10:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oCMas-0003cp-F6 for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2022 10:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Jul 2022 14:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56553 X-GNU-PR-Package: emacs Original-Received: via spool by 56553-submit@debbugs.gnu.org id=B56553.165789638813894 (code B ref 56553); Fri, 15 Jul 2022 14:47:02 +0000 Original-Received: (at 56553) by debbugs.gnu.org; 15 Jul 2022 14:46:28 +0000 Original-Received: from localhost ([127.0.0.1]:41962 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCMaK-0003c1-6L for submit@debbugs.gnu.org; Fri, 15 Jul 2022 10:46:28 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.9]:47405) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCMaE-0003bo-Bn for 56553@debbugs.gnu.org; Fri, 15 Jul 2022 10:46:26 -0400 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4LkvLj1fM0z1r1rk; Fri, 15 Jul 2022 16:46:20 +0200 (CEST) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4LkvLh6KB7z1qqkg; Fri, 15 Jul 2022 16:46:20 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id vLKUEMq7OonJ; Fri, 15 Jul 2022 16:46:20 +0200 (CEST) X-Auth-Info: uZpFPGQSzhUWoU7CshrINT81lp8qXztDbiZ/llpnxG9ZBiCZ7SaCbAZziMXZHKBm Original-Received: from igel.home (ppp-46-244-162-141.dynamic.mnet-online.de [46.244.162.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Fri, 15 Jul 2022 16:46:20 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 1000) id 7EAED2C3784; Fri, 15 Jul 2022 16:46:19 +0200 (CEST) X-Yow: YOW! I can see 1987!! PRESIDENT FORD is doing the REMAKE of "PAGAN LOVE SONG"...he's playing ESTHER WILLIAMS!! In-Reply-To: ("Gerd =?UTF-8?Q?M=C3=B6llmann?="'s message of "Fri, 15 Jul 2022 11:14:02 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:237110 Archived-At: Does this work? diff --git a/src/nsterm.m b/src/nsterm.m index 8e0c4b84f0..30768baced 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -2900,10 +2900,7 @@ Hide the window (X11 semantics) for (int y = 0 ; y < h ; y++) for (int x = 0 ; x < w ; x++) { - /* XBM rows are always round numbers of bytes, with any unused - bits ignored. */ - int byte = y * (w/8 + (w%8 ? 1 : 0)) + x/8; - bool bit = bits[byte] & (0x80 >> x%8); + bool bit = bits[y] & (1 << (w - x - 1)); if (bit) [p appendBezierPathWithRect:NSMakeRect (x, y, 1, 1)]; } -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."