GNU bug report logs -
#9318
23.3.50; The first call of encode-coding-region() returns wrong result on on Windows
Previous Next
Reported by: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
Date: Thu, 18 Aug 2011 09:04:02 UTC
Severity: normal
Found in version 23.3.50
Fixed in version 24.0.93
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #59 received at 9318 <at> debbugs.gnu.org (full text, mbox):
In article <4EDC8AD9.3050004 <at> cs.ucla.edu>, Paul Eggert <eggert <at> cs.ucla.edu> writes:
> That patch (bzr 106613) causes Emacs to use an uninitialized variable;
> I found this via static checking with GCC. I installed the following
> further patch, which I think is right and anyway does not introduce a bug --
> can you please check it? Thanks.
Oops, my fault. Yes, your patch is correct. Thank you.
---
Kenichi Handa
handa <at> m17n.org
> * coding.c (encode_designation_at_bol): Don't use uninitialized
> local variable (Bug#9318).
> === modified file 'src/coding.c'
> --- src/coding.c 2011-12-05 07:03:31 +0000
> +++ src/coding.c 2011-12-05 09:00:44 +0000
> @@ -4356,7 +4356,7 @@
> int *charbuf, int *charbuf_end,
> unsigned char *dst)
> {
> - unsigned char *orig;
> + unsigned char *orig = dst;
> struct charset *charset;
> /* Table of charsets to be designated to each graphic register. */
> int r[4];
This bug report was last modified 13 years and 170 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.