diff options
| author | Paul Eggert | 2016-08-13 23:26:00 -0500 |
|---|---|---|
| committer | Paul Eggert | 2016-08-13 23:32:36 -0500 |
| commit | 2791580f5eaa65948a13ea4ea4952d03b4da795b (patch) | |
| tree | 843389a61dd4c8d85e326b27a6bedee4e87467ac /src/coding.c | |
| parent | c1021ba910efac334027ad03ff6aed64306fad3c (diff) | |
| download | emacs-2791580f5eaa65948a13ea4ea4952d03b4da795b.tar.gz emacs-2791580f5eaa65948a13ea4ea4952d03b4da795b.zip | |
Fix substitute-command-keys unibyte, alloc bugs
* src/doc.c (Fsubstitute_command_keys): Fix some problems with
unibyte strings and with buffer allocation. Make strings
multibyte, to avoid problems with unibyte strings that are not
valid UTF-8 (Bug#24206). Redo buffer allocation so that it is
O(N), not O(N**2). Avoid going past the end of the input string
when given invalid input. Avoid some unlikely problems in
accessing the wrong storage after a GC.
Diffstat (limited to 'src/coding.c')
0 files changed, 0 insertions, 0 deletions