Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/ttssh2/ttxssh/hosts.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 7714 by zmatsuo, Mon May 27 13:23:19 2019 UTC revision 7889 by yutakapon, Thu Jul 25 10:36:55 2019 UTC
# Line 1048  static char *format_host_key(PTInstVar p Line 1048  static char *format_host_key(PTInstVar p
1048                          index = strlen(result);                          index = strlen(result);
1049                  }                  }
1050    
1051                  _snprintf_s(result + index, result_len - host_len, _TRUNCATE,                  // 第2引数(sizeOfBuffer)の指定誤りにより、実際のバッファサイズより
1052                    // 大きくなっていた問題を修正した。
1053                    // ポート番号が22以外の場合、VS2005のdebug buildでは、add_host_key()の
1054                    // free(keydata)で、かならず「ブレークポイントが発生しました。ヒープが壊れていることが
1055                    // 原因として考えられます。」という例外が発生する。
1056                    // release buildでは再現性が低い。
1057                    _snprintf_s(result + index, result_len - index, _TRUNCATE,
1058                              " %d ", pvar->hosts_state.hostkey.bits);                              " %d ", pvar->hosts_state.hostkey.bits);
1059                  index += strlen(result + index);                  index += strlen(result + index);
1060                  index += print_mp_int(result + index, pvar->hosts_state.hostkey.exp);                  index += print_mp_int(result + index, pvar->hosts_state.hostkey.exp);

Legend:
Removed from v.7714  
changed lines
  Added in v.7889

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26