From: Kenichi Handa <handa@m17n.org>
Cc: eliz@gnu.org, emacs-devel@gnu.org, monnier@iro.umontreal.ca,
cfb@cafer.org
Subject: Re: regex.c bug? - Re: HTML Mode and Turkish Locale - Segfault
Date: Thu, 30 Nov 2006 11:09:57 +0900 [thread overview]
Message-ID: <E1GpbN7-0002Rg-6j@etlken.m17n.org> (raw)
In-Reply-To: <87r6vm3yrw.fsf@medic.epidio.net> (cfb@cafer.org)
In article <87r6vm3yrw.fsf@medic.epidio.net>, cfb@cafer.org (Cafer Şimşek) writes:
> I'm getting SegFault already.
I've just installed the simlar fix to another place using
SET_LIST_BIT. So, please try the latest code again.
---
Kenichi Handa
handa@m17n.org
> Program received signal SIGSEGV, Segmentation fault.
> 0x080e400a in re_set_syntax ()
> (gdb)
> I want to help to fix it, so how can I compile Emacs with debug
> symbols?
> Best Regards.
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>>> In tr_TR.UTF-8, 'I' is translated to #x51051 (U+0131). But,
>>> it seems that SET_LIST_BIT assumes that the argument is less
>>> than 256 (or 128). So, I've just installed the following
change.
> >
>>> @@ -2939,7 +2939,8 @@
>>> for (ch = 0; ch < 1 << BYTEWIDTH; ++ch)
>>> {
>>> int translated = TRANSLATE (ch);
>>> - if (re_iswctype (btowc (ch), cc))
>>> + if (translated < (1 << BYTEWIDTH)
>>> + && re_iswctype (btowc (ch), cc))
>>> SET_LIST_BIT (translated);
>>> }
> >
>>> If translated is set to a mutibyte character, I think the
>>> above SET_RANGE_TABLE_WORK_AREA_BIT handles such a case.
> >
>>> Stefan, could you please confirm that my guess above is
>>> correct?
> >
> > That looks correct, yes. Thank you,
> >
> >
> > Stefan
> --
> maybe you want to lost (lene)
> Cafer 'cfb' Şimşek
> http://cafer.org
next prev parent reply other threads:[~2006-11-30 2:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-26 20:58 HTML Mode and Turkish Locale - Segfault Cafer Şimşek
2006-11-27 6:37 ` Eli Zaretskii
2006-11-27 8:19 ` Kenichi Handa
2006-11-27 13:24 ` Eli Zaretskii
2006-11-28 1:17 ` regex.c bug? - " Kenichi Handa
2006-11-28 6:49 ` Stefan Monnier
2006-11-29 18:15 ` Cafer Şimşek
2006-11-29 19:46 ` Andreas Schwab
2006-11-30 2:09 ` Kenichi Handa [this message]
2006-12-04 1:30 ` Cafer Simsek
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1GpbN7-0002Rg-6j@etlken.m17n.org \
--to=handa@m17n.org \
--cc=cfb@cafer.org \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.