From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Problem report #122: base/src/emacs/src/coding.c (encode_coding_emacs_mule); UNINIT Date: Tue, 02 Dec 2008 17:16:58 -0800 Message-ID: <200812030120.mB31KQOM022813@mothra.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1228267695 2098 80.91.229.12 (3 Dec 2008 01:28:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Dec 2008 01:28:15 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 03 02:29:18 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L7gYD-0004q0-FE for ged-emacs-devel@m.gmane.org; Wed, 03 Dec 2008 02:29:15 +0100 Original-Received: from localhost ([127.0.0.1]:36463 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7gX3-0008O9-1e for ged-emacs-devel@m.gmane.org; Tue, 02 Dec 2008 20:28:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L7gQ0-0003TI-2h for emacs-devel@gnu.org; Tue, 02 Dec 2008 20:20:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L7gPy-0003Ry-Hb for emacs-devel@gnu.org; Tue, 02 Dec 2008 20:20:42 -0500 Original-Received: from [199.232.76.173] (port=53396 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7gPy-0003Rn-3z for emacs-devel@gnu.org; Tue, 02 Dec 2008 20:20:42 -0500 Original-Received: from sallyv2.ics.uci.edu ([128.195.1.120]:34591) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1L7gPv-00007J-Nr for emacs-devel@gnu.org; Tue, 02 Dec 2008 20:20:41 -0500 Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv2.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id mB31KRvv027084 for ; Tue, 2 Dec 2008 17:20:27 -0800 (PST) Original-Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mB31KQOM022813; Tue, 2 Dec 2008 17:20:26 -0800 (PST) Original-Lines: 92 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: mB31KRvv027084 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:106477 Archived-At: CID: 122 Checker: UNINIT (help) File: base/src/emacs/src/coding.c Function: encode_coding_emacs_mule Description: Using uninitialized value "code" Event var_decl: Declared variable "code" without initializer Also see events: [uninit_use][uninit_use] 2444 unsigned code; 2445 int dimension; 2446 int emacs_mule_id; 2447 unsigned char leading_codes[2]; 2448=20=09 2449 if (preferred_charset_id >=3D 0) 2450 { 2451 charset =3D CHARSET_FROM_ID (preferred_charset_id); At conditional (1): "(((charset)->unified_p !=3D 0 || (charset)->method =3D= =3D 3 || (charset)->method =3D=3D 4) ? ((encode_char !=3D (charset)->invali= d_code) ? 1 : (0)) : (((c < 65536) ? (charset)->fast_map[c >> 10] & 1 << c = >> 7 & 7 : ((charset)->fast_map[(c >> 15 + 62)] & 1 << c >> 12 & 7)) !=3D 0= && (((charset)->method =3D=3D 0) ? c >=3D (charset)->min_char && c <=3D (c= harset)->max_char : ((((charset)->method =3D=3D 1 && (charset)->compact_cod= es_p !=3D 0) ? ((((c < 128 && ((0), (((0), (((0), ((Vcharset_hash_table & -= 8)->key_and_value & -8))->contents[((2 * (charset)->hash_index) + 1)] & -8)= )->contents[5] & -8))->ascii & 7 =3D=3D 4 && ((0), (((0), (((0), (((0), ((V= charset_hash_table & -8)->key_and_value & -8))->contents[((2 * (charset)->h= ash_index) + 1)] & -8))->contents[5] & -8))->ascii & -8))->size & 461168601= 8428436480 =3D=3D 4611686018428436480 && ((0), (((0), (((0), (((0), ((Vchar= set_hash_table & -8)->key_and_value & -8))->contents[((2 * (charset)->hash_= index) + 1)] & -8))->contents[5] & -8))->ascii & -8))->contents[c] !=3D Qni= l) ? ((0), (((0), (((0), (((0), ((Vcharset_hash_table & -8)->key_and_value = & -8))->contents[((2 * (charset)->hash_index) + 1)] & -8))->contents[5] & -= 8))->ascii & -8))->contents[c] : (char_table_ref)) !=3D Qnil) ? 1 : (0)) : = (((encode_char !=3D (charset)->invalid_code) ? 1 : (0)))))) !=3D 0)) =3D=3D= 0" taking false path 2452 if (! CHAR_CHARSET_P (c, charset)) 2453 charset =3D char_charset (c, charset_list, NULL); 2454 } 2455 else 2456 charset =3D char_charset (c, charset_list, &code); At conditional (2): "charset =3D=3D 0" taking false path 2457 if (! charset) 2458 { 2459 c =3D coding->default_char; 2460 if (ASCII_CHAR_P (c)) 2461 { 2462 EMIT_ONE_ASCII_BYTE (c); 2463 continue; 2464 } 2465 charset =3D char_charset (c, charset_list, &code); 2466 } 2467 dimension =3D CHARSET_DIMENSION (charset); 2468 emacs_mule_id =3D CHARSET_EMACS_MULE_ID (charset); At conditional (3): "emacs_mule_id < 160" taking true path At conditional (4): "0" taking false path 2469 EMACS_MULE_LEADING_CODES (emacs_mule_id, leading_codes); At conditional (5): "multibytep !=3D 0" taking true path At conditional (6): "ch >=3D 128" taking true path At conditional (7): "ch <=3D 127" taking false path At conditional (8): "ch <=3D 2047" taking false path At conditional (9): "ch <=3D 65535" taking false path At conditional (10): "0" taking false path At conditional (11): "0" taking false path 2470 EMIT_ONE_BYTE (leading_codes[0]); At conditional (12): "leading_codes[1] !=3D 0" taking true path 2471 if (leading_codes[1]) At conditional (13): "multibytep !=3D 0" taking true path At conditional (14): "ch >=3D 128" taking true path At conditional (15): "ch <=3D 127" taking false path At conditional (16): "ch <=3D 2047" taking false path At conditional (17): "ch <=3D 65535" taking false path At conditional (18): "0" taking false path At conditional (19): "0" taking false path 2472 EMIT_ONE_BYTE (leading_codes[1]); At conditional (20): "dimension =3D=3D 1" taking true path 2473 if (dimension =3D=3D 1) Event uninit_use: Using uninitialized value "code" Also see events: [var_decl][uninit_use] At conditional (21): "multibytep !=3D 0" taking true path 2474 EMIT_ONE_BYTE (code | 0x80); 2475 else 2476 { Event uninit_use: Using uninitialized value "code" Also see events: [var_decl][uninit_use] 2477 code |=3D 0x8080; 2478 EMIT_ONE_BYTE (code >> 8); 2479 EMIT_ONE_BYTE (code & 0xFF); 2480 } 2481 } 2482 }