1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-28 19:42:02 +00:00

(concat): Check for string overflow (bug#1787).

This commit is contained in:
Chong Yidong 2009-01-27 21:16:32 +00:00
parent 930600e981
commit 0f75abdf76

View File

@ -603,6 +603,8 @@ concat (nargs, args, target_type, last_special)
}
result_len += len;
if (result_len < 0)
error ("String overflow");
}
if (! some_multibyte)