all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#13084: boyer_moore crashes with certain characters in the case table
@ 2012-12-05  0:34 Juri Linkov
  2012-12-11 15:37 ` Eli Zaretskii
  0 siblings, 1 reply; 14+ messages in thread
From: Juri Linkov @ 2012-12-05  0:34 UTC (permalink / raw)
  To: 13084

The minimal reproducible recipe for crashes in boyer_moore noticed in bug#13041:

1. emacs -Q

2. Eval in *scratch*:

(let ((table (standard-case-table)) canon)
  (setq canon (copy-sequence table))
  (aset canon #xff59 ?y)
  (set-char-table-extra-slot table 1 canon)
  (set-char-table-extra-slot table 2 nil)
  (set-standard-case-table table))

3. Start an activity that includes a search, e.g. `C-x 8 RET TAB'

The crash in boyer_moore is caused by fullwidth characters like #xff59
whose Unicode properties are:

  name: FULLWIDTH LATIN SMALL LETTER Y
  decomposition: (wide 121) (wide 'y')

However, the crash doesn't occur when the same fullwidth characters are
set to their downcase counterparts in lisp/international/characters.el:

  ;; Fullwidth Latin
  (setq c #xff21)
  (while (<= c #xff3a)
    (set-case-syntax-pair c (+ c #x20) tbl)
    (modify-category-entry c ?l)
    (modify-category-entry (+ c #x20) ?l)
    (setq c (1+ c)))





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

end of thread, other threads:[~2012-12-15 13:55 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-05  0:34 bug#13084: boyer_moore crashes with certain characters in the case table Juri Linkov
2012-12-11 15:37 ` Eli Zaretskii
2012-12-11 23:17   ` Juri Linkov
2012-12-12  3:55     ` Eli Zaretskii
2012-12-12  9:27       ` Juri Linkov
2012-12-12 10:21         ` martin rudalics
2012-12-12 10:31           ` Juri Linkov
2012-12-12 12:43             ` martin rudalics
2012-12-12 16:47         ` Eli Zaretskii
2012-12-12 23:05           ` Juri Linkov
2012-12-13 13:39   ` Kenichi Handa
2012-12-13 17:32     ` Eli Zaretskii
2012-12-15 13:17       ` Kenichi Handa
2012-12-15 13:55         ` Eli Zaretskii

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.