aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorDmitry Antipov2014-06-25 14:36:51 +0400
committerDmitry Antipov2014-06-25 14:36:51 +0400
commit5697ca55cb79817a6704c344cc76d866ee2e1699 (patch)
tree3d9cace5c0dd430485eb16697cb6c045553eb3ae /src/ChangeLog
parent9a214b9800b7c01d8a473a2564e8f57215990b24 (diff)
downloademacs-5697ca55cb79817a6704c344cc76d866ee2e1699.tar.gz
emacs-5697ca55cb79817a6704c344cc76d866ee2e1699.zip
Do not allow out-of-range character position in Fcompare_strings.
* src/fns.c (validate_subarray): Add prototype. (Fcompare_substring): Use validate_subarray to check ranges. Adjust comment to mention that the semantics was changed. Also see http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00447.html. * lisp/files.el (dir-locals-find-file, file-relative-name): * lisp/info.el (Info-complete-menu-item): * lisp/minibuffer.el (completion-table-subvert): Prefer string-prefix-p to compare-strings to avoid out-of-range errors. * lisp/subr.el (string-prefix-p): Adjust to match strict range checking in compare-strings. * test/automated/fns-tests.el (fns-tests-compare-string): New test.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 9f676a6518d..fc47fbc8978 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,11 @@
12014-06-25 Dmitry Antipov <dmantipov@yandex.ru>
2
3 Do not allow out-of-range character position in Fcompare_strings.
4 * fns.c (validate_subarray): Add prototype.
5 (Fcompare_substring): Use validate_subarray to check ranges.
6 Adjust comment to mention that the semantics was changed. Also see
7 http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00447.html.
8
12014-06-24 Paul Eggert <eggert@cs.ucla.edu> 92014-06-24 Paul Eggert <eggert@cs.ucla.edu>
2 10
3 Be more consistent about the 'Qfoo' naming convention. 11 Be more consistent about the 'Qfoo' naming convention.