AppleWin/source/Debugger
Andrea 70540bd6dc Fix the following errors reported by VS2017 Code Analysis. (#414)
* Fix the following errors reported by VS2017 Code Analysis.

applewin\source\applewin.cpp(761): warning C6385: Reading invalid data from '"Disk Image"':  the readable size is '11' bytes, but '21' bytes may be read.
applewin\source\debugger\debug.cpp(6624): warning C6386: Buffer overrun while writing to 'sName':  the writable size is '31' bytes, but '32' bytes might be written.
applewin\source\debugger\debugger_display.cpp(3715): warning C6053: The prior call to 'strncpy' might not zero-terminate string 'sText'.
applewin\source\log.cpp(42): warning C6053: The prior call to '_vsnprintf' might not zero-terminate string 'output'.
applewin\source\debugger\debug.cpp(2759): warning C6011: Dereferencing NULL pointer 'pFont'.
applewin\source\debugger\debugger_symbols.cpp(243): warning C6053: The prior call to '_tcsncpy' might not zero-terminate string 'pText'.
applewin\source\diskimagehelper.cpp(1132): warning C6053: The prior call to '_tcsncpy' might not zero-terminate string 'pszExt'.
applewin\source\diskimagehelper.cpp(1141): warning C6053: The prior call to '_tcsncpy' might not zero-terminate string 'szFilename'.
applewin\source\parallelprinter.cpp(242): warning C6053: The prior call to '_tcsncpy' might not zero-terminate string 'g_szPrintFilename'.

The one about RegSetValue(), according to Microsoft

https://msdn.microsoft.com/en-us/library/windows/desktop/ms724922(v=vs.85).aspx

the last argument cbData is ignored, so I set it to 0, as in some cases was anyway wrong (see "DiskImage").


Signed-off-by: Andrea Odetti <mariofutire@gmail.com>

* Use sizeof() rather than hardcoded value.
Fix one more case on non terminated string.


Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2018-02-24 15:24:37 +00:00
..
Debug.cpp Fix the following errors reported by VS2017 Code Analysis. (#414) 2018-02-24 15:24:37 +00:00
Debug.h Changes to ease code compilation in gcc. (#541) 2018-02-24 15:12:40 +00:00
DebugDefs.h Debugger: BPM cmd: trigger on stack access for BRK,JSR,PLn,PHn,RTI,RTS (#445) 2017-08-04 21:07:02 +01:00
Debugger_Assembler.cpp Changes to ease code compilation in gcc. (#541) 2018-02-24 15:12:40 +00:00
Debugger_Assembler.h Debugger: BPM cmd: trigger on stack access for BRK,JSR,PLn,PHn,RTI,RTS (#445) 2017-08-04 21:07:02 +01:00
Debugger_Color.cpp Add VS2015 proj files & fix for building under VS2015 in Release (closes #296) 2016-03-24 22:55:36 +00:00
Debugger_Color.h Add VS2015 proj files & fix for building under VS2015 in Release (closes #296) 2016-03-24 22:55:36 +00:00
Debugger_Commands.cpp Changes to ease code compilation in gcc. (#541) 2018-02-24 15:12:40 +00:00
Debugger_Console.cpp Fix off-by-one bug wrapping in debugger console #476 2017-08-24 16:59:19 -07:00
Debugger_Console.h Added variadic variants of ConsolePrint(), ConsoleBufferPush() to make code cleaner. Also added ConsoleColorizePrint() and variants. 2016-12-29 12:07:54 -05:00
Debugger_DisassemblerData.cpp Added variadic variants of ConsolePrint(), ConsoleBufferPush() to make code cleaner. Also added ConsoleColorizePrint() and variants. 2016-12-29 12:07:54 -05:00
Debugger_DisassemblerData.h Qualified all STL refs with std:: to get rid of the 'using namespace std' mismatch between the main code & debugger code 2014-08-14 20:29:01 +01:00
Debugger_Display.cpp Fix the following errors reported by VS2017 Code Analysis. (#414) 2018-02-24 15:24:37 +00:00
Debugger_Display.h Bug #239 : Debugger 2.8.0.6: Ctrl-Print Screen while the debugger is active will copy the debugger text to the clipboard 2014-12-01 22:01:08 -08:00
Debugger_Help.cpp Changes to ease code compilation in gcc. (#541) 2018-02-24 15:12:40 +00:00
Debugger_Help.h Remove the top-level AppleWin folder 2014-05-23 22:59:02 +01:00
Debugger_Parser.cpp Changes to ease code compilation in gcc. (#541) 2018-02-24 15:12:40 +00:00
Debugger_Parser.h Move Util_* files into Debugger subfolder & update all vcproj files 2014-08-13 22:25:22 +01:00
Debugger_Range.cpp PCH refactor: remove non-system headers from stdafx.h 2014-08-13 21:30:35 +01:00
Debugger_Range.h Remove the top-level AppleWin folder 2014-05-23 22:59:02 +01:00
Debugger_Symbols.cpp Fix the following errors reported by VS2017 Code Analysis. (#414) 2018-02-24 15:24:37 +00:00
Debugger_Symbols.h Remove the top-level AppleWin folder 2014-05-23 22:59:02 +01:00
Debugger_Types.h #481 Extend arguments from 55 chars to 127 chars 2017-08-25 08:56:23 -07:00
Util_MemoryTextFile.cpp Add note about vector clear() insert() at() 2017-08-24 18:43:54 -07:00
Util_MemoryTextFile.h Qualified all STL refs with std:: to get rid of the 'using namespace std' mismatch between the main code & debugger code 2014-08-14 20:29:01 +01:00
Util_Text.h Move Util_* files into Debugger subfolder & update all vcproj files 2014-08-13 22:25:22 +01:00