emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem report #112: base/src/emacs/src/coding.c (produce_chars); UNINIT


From: Dan Nicolaescu
Subject: Problem report #112: base/src/emacs/src/coding.c (produce_chars); UNINIT
Date: Tue, 2 Dec 2008 14:22:56 -0800 (PST)

CID: 112
Checker: UNINIT (help)
File: base/src/emacs/src/coding.c
Function: produce_chars
Description: Using uninitialized value "consumed_chars"

Event var_decl: Declared variable "consumed_chars" without initializer
Also see events: [uninit_use]

6282                  EMACS_INT consumed_chars;
6283    

At conditional (1): "1" taking true path

6284                  while (1)
6285                    {
6286                      const unsigned char *src_base = src;
6287                      int c;
6288    

Event uninit_use: Using uninitialized value "consumed_chars"
Also see events: [var_decl]
At conditional (2): "src == src_end" taking false path
At conditional (3): "multibytep != 0" taking true path
At conditional (4): "c & 128 != 0" taking true path
At conditional (5): "c & 254 == 192" taking true path

6289                      ONE_MORE_BYTE (c);
6290                      if (dst == dst_end)
6291                        {
6292                          if (EQ (coding->src_object, coding->dst_object))
6293                            dst_end = (unsigned char *) src;
6294                          if (dst == dst_end)
6295                            {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]