diff options
| author | Dmitry Antipov | 2014-06-25 16:11:08 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2014-06-25 16:11:08 +0400 |
| commit | 51e12e8e9411e5d050c36ef6d8777445a5497972 (patch) | |
| tree | 3473f0b720f0c6bcb4d8f42d9bf230675c46087d /src/ChangeLog | |
| parent | 5697ca55cb79817a6704c344cc76d866ee2e1699 (diff) | |
| download | emacs-51e12e8e9411e5d050c36ef6d8777445a5497972.tar.gz emacs-51e12e8e9411e5d050c36ef6d8777445a5497972.zip | |
Consistently use validate_subarray to verify substring.
* fns.c (validate_substring): Not static any more. Adjust to
use ptrdiff_t, not EMACS_INT, becase string and vector limits
can't exceed ptrdiff_t even if EMACS_INT is wider.
* lisp.h (validate_subarray): Add prototype.
* coding.c (Fundecodable_char_position):
* composite.c (Fcomposition_get_gstring, Fcompose_string_internal):
Use validate_subarray. Adjust comment to mention substring.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index fc47fbc8978..24b8e711420 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,16 @@ | |||
| 1 | 2014-06-25 Dmitry Antipov <dmantipov@yandex.ru> | 1 | 2014-06-25 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 2 | ||
| 3 | Consistently use validate_subarray to verify substring. | ||
| 4 | * fns.c (validate_substring): Not static any more. Adjust to | ||
| 5 | use ptrdiff_t, not EMACS_INT, becase string and vector limits | ||
| 6 | can't exceed ptrdiff_t even if EMACS_INT is wider. | ||
| 7 | * lisp.h (validate_subarray): Add prototype. | ||
| 8 | * coding.c (Fundecodable_char_position): | ||
| 9 | * composite.c (Fcomposition_get_gstring, Fcompose_string_internal): | ||
| 10 | Use validate_subarray. Adjust comment to mention substring. | ||
| 11 | |||
| 12 | 2014-06-25 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 13 | |||
| 3 | Do not allow out-of-range character position in Fcompare_strings. | 14 | Do not allow out-of-range character position in Fcompare_strings. |
| 4 | * fns.c (validate_subarray): Add prototype. | 15 | * fns.c (validate_subarray): Add prototype. |
| 5 | (Fcompare_substring): Use validate_subarray to check ranges. | 16 | (Fcompare_substring): Use validate_subarray to check ranges. |