https://git.reactos.org/?p=reactos.git;a=commitdiff;h=13e566444d5e0f20bd4a92...
commit 13e566444d5e0f20bd4a92af9bce75408162f446 Author: Pako Smith pakosmth@gmail.com AuthorDate: Wed Nov 14 14:30:30 2018 +0300 Commit: Hermès BÉLUSCA - MAÏTO hermes.belusca-maito@reactos.org CommitDate: Wed Nov 14 12:30:30 2018 +0100
[TFTPD] Fix Coverity #1434273 "Out-of-Bounds access" (#1037)
'extbuff' must be of size _MAX_PATH to comply with its usage in the GetModuleFileName() call made in the code. --- base/services/tftpd/tftpd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/base/services/tftpd/tftpd.cpp b/base/services/tftpd/tftpd.cpp index 7e0968a0a5..11e26fa2d3 100644 --- a/base/services/tftpd/tftpd.cpp +++ b/base/services/tftpd/tftpd.cpp @@ -38,7 +38,7 @@ char iniFile[_MAX_PATH]; char logFile[_MAX_PATH]; char lnkFile[_MAX_PATH]; char tempbuff[256]; -char extbuff[256]; +char extbuff[_MAX_PATH]; char logBuff[512]; char fileSep = '\'; char notFileSep = '/';