summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2016-08-13 23:26:00 -0500
committerPaul Eggert <eggert@cs.ucla.edu>2016-08-13 23:32:36 -0500
commit2791580f5eaa65948a13ea4ea4952d03b4da795b (patch)
tree843389a61dd4c8d85e326b27a6bedee4e87467ac /lisp/emacs-lisp
parentc1021ba910efac334027ad03ff6aed64306fad3c (diff)
downloademacs-2791580f5eaa65948a13ea4ea4952d03b4da795b.tar.gz
emacs-2791580f5eaa65948a13ea4ea4952d03b4da795b.tar.bz2
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 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions