mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
lisp/help.el (help-function-arglist): Fix out-of-bounds access (bug#76179)
This commit is contained in:
parent
317a5015f8
commit
411db55432
1 changed files with 1 additions and 1 deletions
|
|
@ -2381,7 +2381,7 @@ the same names as used in the original source code, when possible."
|
|||
(dolist (arg arglist)
|
||||
(unless (and (symbolp arg)
|
||||
(let ((name (symbol-name arg)))
|
||||
(if (eq (aref name 0) ?&)
|
||||
(if (and (> (length name) 0) (eq (aref name 0) ?&))
|
||||
(memq arg '(&rest &optional))
|
||||
(not (string-search "." name)))))
|
||||
(setq valid nil)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue