unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Problem report #112: base/src/emacs/src/coding.c (produce_chars); UNINIT
@ 2008-12-02 22:22 Dan Nicolaescu
  2008-12-03  5:21 ` Kenichi Handa
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Nicolaescu @ 2008-12-02 22:22 UTC (permalink / raw)
  To: emacs-devel

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 				{




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Problem report #112: base/src/emacs/src/coding.c (produce_chars); UNINIT
  2008-12-02 22:22 Problem report #112: base/src/emacs/src/coding.c (produce_chars); UNINIT Dan Nicolaescu
@ 2008-12-03  5:21 ` Kenichi Handa
  0 siblings, 0 replies; 2+ messages in thread
From: Kenichi Handa @ 2008-12-03  5:21 UTC (permalink / raw)
  To: Dan Nicolaescu; +Cc: emacs-devel

In article <200812022222.mB2MMuiX021762@mothra.ics.uci.edu>, Dan Nicolaescu <dann@ics.uci.edu> writes:

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

I installed a fix.

---
Kenichi Handa
handa@ni.aist.go.jp




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-12-03  5:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-02 22:22 Problem report #112: base/src/emacs/src/coding.c (produce_chars); UNINIT Dan Nicolaescu
2008-12-03  5:21 ` Kenichi Handa

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).