commit | 4841a7ccaed57f723016656e9683b587ac91f621 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Sep 22 14:08:49 2018 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Sep 22 14:08:49 2018 +0200 |
tree | 0793848663ec98b1a2b0a0a82231bcbacc2449ab | |
parent | 9cea87c5775948a35098f3602746c20ecf95dbcd [diff] [blame] |
patch 8.1.0426: accessing invalid memory in SmcOpenConnection() Problem: Accessing invalid memory in SmcOpenConnection(). Solution: Reduce size of errorstring by one. (Dominique Pelle, closes #3469)
diff --git a/src/os_unix.c b/src/os_unix.c index bd7b219..0e27609 100644 --- a/src/os_unix.c +++ b/src/os_unix.c
@@ -8032,7 +8032,7 @@ &smcallbacks, NULL, &xsmp.clientid, - sizeof(errorstring), + sizeof(errorstring) - 1, errorstring); if (xsmp.smcconn == NULL) {