[Feedreader-development] patch to fix buffer overrun in MdHintWn.pas
Brought to you by:
toomastoots
From: Miha R. <pb...@mi...> - 2003-03-13 20:39:13
|
Hi! Here's patch to fix possible buffer overruns that could occur in TMdHintWindow/TMdBubbleHintWindow classes. I found three calls to StrPCopy without any parameter length checking. Index: MdHintWn.pas =================================================================== RCS file: /cvsroot/feedreader/feedreader/MdHintWn.pas,v retrieving revision 1.2 diff -r1.2 MdHintWn.pas 334c334 < StrPCopy(CCaption, Caption); --- > StrLCopy(CCaption, PChar(Caption), SizeOf(CCaption) - 1); 435c435 < StrPCopy(CCaption, Caption); --- > StrLCopy(CCaption, PChar(Caption), SizeOf(CCaption) - 1); 616c616 < StrPCopy(CCaption, Caption); --- > StrLCopy(CCaption, PChar(Caption), SizeOf(CCaption) - 1); -- Miha Remec |