From unknown Sat Jun 21 12:25:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9947: valgrind warning: Conditional jump or move depends on uninitialised value(s) in note_mouse_highlight Resent-From: Dan Nicolaescu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Nov 2011 21:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9947 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 9947@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.132035664516512 (code B ref -1); Thu, 03 Nov 2011 21:45:01 +0000 Received: (at submit) by debbugs.gnu.org; 3 Nov 2011 21:44:05 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RM54u-0004IG-HK for submit@debbugs.gnu.org; Thu, 03 Nov 2011 17:44:05 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RM54s-0004I9-CU for submit@debbugs.gnu.org; Thu, 03 Nov 2011 17:44:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RM52Q-0007Lo-Jg for submit@debbugs.gnu.org; Thu, 03 Nov 2011 17:41:31 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=5.0 tests=ALL_TRUSTED,BAYES_00, RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:46279) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RM52Q-0007Lk-IB for submit@debbugs.gnu.org; Thu, 03 Nov 2011 17:41:30 -0400 Received: from eggs.gnu.org ([140.186.70.92]:39538) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RM52P-0000GH-3x for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2011 17:41:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RM52O-0007LV-22 for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2011 17:41:29 -0400 Received: from fencepost.gnu.org ([140.186.70.10]:33892) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RM52O-0007LR-0V for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2011 17:41:28 -0400 Received: from dann by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RM52N-0003oa-TN for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2011 17:41:27 -0400 From: Dan Nicolaescu Date: Thu, 03 Nov 2011 17:41:27 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.5 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) valgrind ./temacs -Q gives this warning: ==7776== Conditional jump or move depends on uninitialised value(s) ==7776== at 0x4738C5: note_mouse_highlight (xdisp.c:26977) ==7776== by 0x4F8682: note_mouse_movement (xterm.c:3833) ==7776== by 0x4FCBB1: handle_one_xevent (xterm.c:6667) ==7776== by 0x4FD815: XTread_socket (xterm.c:7148) ==7776== by 0x5438DB: read_avail_input (keyboard.c:6821) ==7776== by 0x544183: handle_async_input (keyboard.c:7149) ==7776== by 0x5441A2: process_pending_signals (keyboard.c:7165) ==7776== by 0x5AACF5: re_match_2_internal (regex.c:5888) ==7776== by 0x5A6780: re_search_2 (regex.c:4481) ==7776== by 0x5A57C5: re_search (regex.c:4262) ==7776== by 0x59260A: fast_string_match (search.c:482) ==7776== by 0x578870: Ffind_file_name_handler (fileio.c:286) ==7776== This is legitimate, the code is looking at the value of "area" inside a conditional: if (glyph == NULL [snip] "area" is computed by this code: /* Find the glyph under X/Y. */ glyph = x_y_to_hpos_vpos (w, x, y, &hpos, &vpos, &dx, &dy, &area); but "area" is not set when `x_y_to_hpos_vpos' return NULL. From unknown Sat Jun 21 12:25:39 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Dan Nicolaescu Subject: bug#9947: closed (Re: bug#9947: valgrind warning: Conditional jump or move depends on uninitialised value(s) in note_mouse_highlight) Message-ID: References: <83zkgclusm.fsf@gnu.org> X-Gnu-PR-Message: they-closed 9947 X-Gnu-PR-Package: emacs Reply-To: 9947@debbugs.gnu.org Date: Thu, 03 Nov 2011 22:16:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1320358562-19383-1" This is a multi-part message in MIME format... ------------=_1320358562-19383-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #9947: valgrind warning: Conditional jump or move depends on uninitialised = value(s) in note_mouse_highlight which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 9947@debbugs.gnu.org. --=20 9947: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D9947 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1320358562-19383-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 9947-done) by debbugs.gnu.org; 3 Nov 2011 22:15:13 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RM5Z3-00050k-H9 for submit@debbugs.gnu.org; Thu, 03 Nov 2011 18:15:13 -0400 Received: from mtaout21.012.net.il ([80.179.55.169]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RM5Z0-00050a-Ns for 9947-done@debbugs.gnu.org; Thu, 03 Nov 2011 18:15:12 -0400 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LU300F00URUTS00@a-mtaout21.012.net.il> for 9947-done@debbugs.gnu.org; Fri, 04 Nov 2011 00:12:38 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.228.70.69]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LU300FXOV10NCA0@a-mtaout21.012.net.il>; Fri, 04 Nov 2011 00:12:37 +0200 (IST) Date: Fri, 04 Nov 2011 00:12:41 +0200 From: Eli Zaretskii Subject: Re: bug#9947: valgrind warning: Conditional jump or move depends on uninitialised value(s) in note_mouse_highlight In-reply-to: X-012-Sender: halo1@inter.net.il To: Dan Nicolaescu Message-id: <83zkgclusm.fsf@gnu.org> References: X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 9947-done Cc: 9947-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > From: Dan Nicolaescu > Date: Thu, 03 Nov 2011 17:41:27 -0400 > > > valgrind ./temacs -Q > > gives this warning: > > ==7776== Conditional jump or move depends on uninitialised value(s) > ==7776== at 0x4738C5: note_mouse_highlight (xdisp.c:26977) > ==7776== by 0x4F8682: note_mouse_movement (xterm.c:3833) > ==7776== by 0x4FCBB1: handle_one_xevent (xterm.c:6667) > ==7776== by 0x4FD815: XTread_socket (xterm.c:7148) > ==7776== by 0x5438DB: read_avail_input (keyboard.c:6821) > ==7776== by 0x544183: handle_async_input (keyboard.c:7149) > ==7776== by 0x5441A2: process_pending_signals (keyboard.c:7165) > ==7776== by 0x5AACF5: re_match_2_internal (regex.c:5888) > ==7776== by 0x5A6780: re_search_2 (regex.c:4481) > ==7776== by 0x5A57C5: re_search (regex.c:4262) > ==7776== by 0x59260A: fast_string_match (search.c:482) > ==7776== by 0x578870: Ffind_file_name_handler (fileio.c:286) > ==7776== > > This is legitimate, the code is looking at the value of "area" inside a conditional: > > if (glyph == NULL > [snip] > > "area" is computed by this code: > /* Find the glyph under X/Y. */ > glyph = x_y_to_hpos_vpos (w, x, y, &hpos, &vpos, &dx, &dy, &area); > > but "area" is not set when `x_y_to_hpos_vpos' return NULL. Thanks, fixed. ------------=_1320358562-19383-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 3 Nov 2011 21:44:05 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RM54u-0004IG-HK for submit@debbugs.gnu.org; Thu, 03 Nov 2011 17:44:05 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RM54s-0004I9-CU for submit@debbugs.gnu.org; Thu, 03 Nov 2011 17:44:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RM52Q-0007Lo-Jg for submit@debbugs.gnu.org; Thu, 03 Nov 2011 17:41:31 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=5.0 tests=ALL_TRUSTED,BAYES_00, RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:46279) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RM52Q-0007Lk-IB for submit@debbugs.gnu.org; Thu, 03 Nov 2011 17:41:30 -0400 Received: from eggs.gnu.org ([140.186.70.92]:39538) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RM52P-0000GH-3x for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2011 17:41:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RM52O-0007LV-22 for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2011 17:41:29 -0400 Received: from fencepost.gnu.org ([140.186.70.10]:33892) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RM52O-0007LR-0V for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2011 17:41:28 -0400 Received: from dann by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RM52N-0003oa-TN for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2011 17:41:27 -0400 From: Dan Nicolaescu To: bug-gnu-emacs@gnu.org Subject: valgrind warning: Conditional jump or move depends on uninitialised value(s) in note_mouse_highlight Date: Thu, 03 Nov 2011 17:41:27 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.5 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) valgrind ./temacs -Q gives this warning: ==7776== Conditional jump or move depends on uninitialised value(s) ==7776== at 0x4738C5: note_mouse_highlight (xdisp.c:26977) ==7776== by 0x4F8682: note_mouse_movement (xterm.c:3833) ==7776== by 0x4FCBB1: handle_one_xevent (xterm.c:6667) ==7776== by 0x4FD815: XTread_socket (xterm.c:7148) ==7776== by 0x5438DB: read_avail_input (keyboard.c:6821) ==7776== by 0x544183: handle_async_input (keyboard.c:7149) ==7776== by 0x5441A2: process_pending_signals (keyboard.c:7165) ==7776== by 0x5AACF5: re_match_2_internal (regex.c:5888) ==7776== by 0x5A6780: re_search_2 (regex.c:4481) ==7776== by 0x5A57C5: re_search (regex.c:4262) ==7776== by 0x59260A: fast_string_match (search.c:482) ==7776== by 0x578870: Ffind_file_name_handler (fileio.c:286) ==7776== This is legitimate, the code is looking at the value of "area" inside a conditional: if (glyph == NULL [snip] "area" is computed by this code: /* Find the glyph under X/Y. */ glyph = x_y_to_hpos_vpos (w, x, y, &hpos, &vpos, &dx, &dy, &area); but "area" is not set when `x_y_to_hpos_vpos' return NULL. ------------=_1320358562-19383-1--