• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythongamewindowsbathyscaphephpguic翻訳omegattwitterframeworktestbtronarduinovb.net計画中(planning stage)directxpreviewerゲームエンジンdom

Tera Termの個人的な作業用リポジトリ


Commit MetaInfo

修订版ccd049e2d1fd6717870da7959839ec2cd2a7fbb6 (tree)
时间2020-05-23 23:22:04
作者zmatsuo <zmatsuo@user...>
Commiterzmatsuo

Log Message

改行コード変換時バッファオーバーランを起こしていた

git-svn-id: svn+ssh://svn.osdn.net/svnroot/ttssh2/trunk@8789 f5f01b69-1e22-0410-acbf-894ab4bd6246

更改概述

差异

--- a/teraterm/teraterm/sendmem.cpp
+++ b/teraterm/teraterm/sendmem.cpp
@@ -434,7 +434,7 @@ static wchar_t *NormalizeLineBreak(const wchar_t *src, size_t *len)
434434 const wchar_t *p = src;
435435 const wchar_t *p_end = src + src_len;
436436 wchar_t *dest = dest_top;
437- while (p <= p_end) {
437+ while (p < p_end) {
438438 wchar_t c = *p++;
439439 if (c == CR) {
440440 if (*p == LF) {