Mercurial > vim
comparison src/os_unix.c @ 14828:421e120ffb30 v8.1.0426
patch 8.1.0426: accessing invalid memory in SmcOpenConnection()
commit https://github.com/vim/vim/commit/4841a7ccaed57f723016656e9683b587ac91f621
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 22 14:08:49 2018 +0200
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 https://github.com/vim/vim/issues/3469)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 22 Sep 2018 14:15:05 +0200 |
parents | 193471015e1a |
children | 27b9a84395b5 |
comparison
equal
deleted
inserted
replaced
14827:56b71e259a61 | 14828:421e120ffb30 |
---|---|
8030 SmcSaveYourselfProcMask | SmcDieProcMask | 8030 SmcSaveYourselfProcMask | SmcDieProcMask |
8031 | SmcSaveCompleteProcMask | SmcShutdownCancelledProcMask, | 8031 | SmcSaveCompleteProcMask | SmcShutdownCancelledProcMask, |
8032 &smcallbacks, | 8032 &smcallbacks, |
8033 NULL, | 8033 NULL, |
8034 &xsmp.clientid, | 8034 &xsmp.clientid, |
8035 sizeof(errorstring), | 8035 sizeof(errorstring) - 1, |
8036 errorstring); | 8036 errorstring); |
8037 if (xsmp.smcconn == NULL) | 8037 if (xsmp.smcconn == NULL) |
8038 { | 8038 { |
8039 char errorreport[132]; | 8039 char errorreport[132]; |
8040 | 8040 |