fixed buffer overflow bug. golded+ can crash in message list if size of name or subject is too big.
This commit is contained in:
parent
734e67d8b6
commit
9bb9d3abd8
@ -10,6 +10,8 @@ _____________________________________________________________________________
|
||||
‡ ¬¥âª¨ ¤«ï GoldED+ 1.1.5, /snapshot/
|
||||
_____________________________________________________________________________
|
||||
|
||||
- Golded+ ¬®£ 㯠áâì ¢ ᯨ᪥ á®®¡é¥¨©, ¥á«¨ à §¬¥à ¨¬¥¨ ¨«¨ ⥬ë ᫨誮¬
|
||||
¡®«ì訥.
|
||||
- ˆá¯à ¢«¥ ¬¥î 㤠«¥¨ï ¥®â¯à ¢«¥ëå á®®¡é¥¨©, ª®£¤ 㤠«ï«®áì ¢ ª®à§¨ã.
|
||||
- ˆá¯à ¢«¥ ¯®¤áç¥â ¢à¥¬¥¨ ᪮«ìª® £®«¤¥¤ ¯à®áâ ¨¢ «.
|
||||
- <20>¥ à ¡®â «® ^¡ãª¢ ¨§ ª®¬ ¤®© áâப¨.
|
||||
|
@ -10,6 +10,8 @@ ______________________________________________________________________
|
||||
Notes for GoldED+ 1.1.5, /snapshot/
|
||||
______________________________________________________________________
|
||||
|
||||
- Golded+ can crash in message list if size of name or subject is too big.
|
||||
|
||||
- Fixed delete menu dialog, when unsent message is to be deleted to recyclebin.
|
||||
|
||||
- Fixed idle time counting.
|
||||
|
@ -221,9 +221,10 @@ void GMsgList::ReadMlst(int n) {
|
||||
ml->written = msg.written;
|
||||
ml->arrived = msg.arrived;
|
||||
ml->received = msg.received;
|
||||
strcpy(ml->by, msg.By());
|
||||
strcpy(ml->to, msg.To());
|
||||
strcpy(ml->re, msg.re);
|
||||
|
||||
strxcpy(ml->by, msg.By(), ARRAYSIZE(ml->by));
|
||||
strxcpy(ml->to, msg.To(), ARRAYSIZE(ml->to));
|
||||
strxcpy(ml->re, msg.re, ARRAYSIZE(ml->re));
|
||||
|
||||
{ Addr zero;
|
||||
ml->colorby = GetColorName(ml->by, msg.orig, DEFATTR);
|
||||
|
Reference in New Issue
Block a user