From: Kenichi Handa <handa@m17n.org>
Subject: Re: Possible severe disoptimality in CCL
Date: Tue, 07 Nov 2006 11:41:03 +0900 [thread overview]
Message-ID: <E1GhGtb-0003uU-00@etlken> (raw)
In-Reply-To: <E1GhBZM-0007FW-Mw@fencepost.gnu.org> (message from Richard Stallman on Mon, 06 Nov 2006 15:59:48 -0500)
In article <E1GhBZM-0007FW-Mw@fencepost.gnu.org>, Richard Stallman <rms@gnu.org> writes:
> Can you please DTRT, then ack?
[...]
> ------- Start of forwarded message -------
> Date: Sun, 05 Nov 2006 23:04:07 -0800
> From: Bob Halley <halley@play-bow.org>
[...]
> I then went looking for a reason for ccl.produced to be so wrong. The
> CCL program in question has a "buffer magnification" of zero, which
> means "produce no bytes". In this case the current destination pointer,
> dst, is set to NULL. A NULL dst causes the calculation of ccl->produced
> just after the ccl_finish tag in ccl_driver() to be wrong, because the
> code does
> ccl->produced = dst - destination
> I changed this code (patch attached) so that it set ccl->produced to
> zero if dst was NULL. With this change, both the type error and the
> segfault no longer happen. (The type error is fixed because we're no
> longer reading random memory and treating it as encoded characters.)
You are right. I was going to change Fccl_execute_on_string
to call ccl_driver with DESTINATION = NULL, but it seems
that your fix is better. I've just installed it.
By the way, this bug doesn't exist in HEAD because it was
introduced in emacs-unicode-2 when I changed the interface
of ccl_driver ().
---
Kenichi Handa
handa@m17n.org
parent reply other threads:[~2006-11-07 2:41 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <E1GhBZM-0007FW-Mw@fencepost.gnu.org>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1GhGtb-0003uU-00@etlken \
--to=handa@m17n.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).