Ticket #40993

マクロの文字列変数の最大長の撤廃

Date d'ouverture: 2020-11-20 22:53 Dernière mise à jour: 2020-12-04 23:41

Rapporteur:
Propriétaire:
(Aucun)
Type:
État:
Ouvert
Composant:
Jalon:
Priorité:
5 - moyen
Sévérité:
5 - moyen
Résolution:
Aucun
Fichier:
Aucun
Vote
Score: 0
No votes
0.0% (0/0)
0.0% (0/0)

Détails

r8652, r8696 にて撤廃されたとのこと

Tera Term 本体と MaxStrLen を超える長さの文字列をやりとりできるのか要確認

Ticket History (3/4 Histories)

2020-11-20 22:53 Updated by: nmaya
  • New Ticket "マクロの文字列変数の最大長の撤廃" created
2020-11-20 22:56 Updated by: nmaya
  • Details Updated
2020-12-02 00:59 Updated by: zmatsuo
Commentaire
2020-12-04 23:41 Updated by: nmaya
Commentaire

/ttpmacro/ttmdde.c, /teraterm/ttdde.c を見ると、char ParamFileName[MaxStrLen], char Cmd[1 + MaxStrLen] といった MaxStrLen の長さで確保された char 配列を使用してデータをやりとりしている。

文字列変数に長さの限界がなかったとして、dispstr で MaxStrLen を超える文字列を ttermpro 側に投げたら渡らなそう。

それ以外の箇所でも、/ttpmacro/ で MaxStrLen を検索すると引っかかる。

Attachment File List

No attachments

Modifier

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Connexion