unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
To: emacs-devel@gnu.org
Subject: CCL_WRITE_CHAR and CCL_WRITE_MULTIBYTE_CHAR
Date: Thu, 17 Jan 2008 11:37:34 +0900	[thread overview]
Message-ID: <wlejchrxch.wl%mituharu@math.s.chiba-u.ac.jp> (raw)

I suspect the boundary checking in CCL_WRITE_CHAR and
CCL_WRITE_MULTIBYTE_CHAR can be relaxed by 1.  I mean,

    else if (dst + bytes + extra_bytes <= (dst_bytes ? dst_end : src))	\

instead of 

    else if (dst + bytes + extra_bytes < (dst_bytes ? dst_end : src))	\

I have a situation where the destination buffer size is tight and the
last byte is not filled.

				     YAMAMOTO Mitsuharu
				mituharu@math.s.chiba-u.ac.jp

             reply	other threads:[~2008-01-17  2:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-17  2:37 YAMAMOTO Mitsuharu [this message]
2008-01-31 11:35 ` CCL_WRITE_CHAR and CCL_WRITE_MULTIBYTE_CHAR Kenichi Handa
2008-01-31 12:37   ` YAMAMOTO Mitsuharu
2008-02-01  1:21     ` Kenichi Handa

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=wlejchrxch.wl%mituharu@math.s.chiba-u.ac.jp \
    --to=mituharu@math.s.chiba-u.ac.jp \
    --cc=emacs-devel@gnu.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).