morgantsai12 / inno-download-plugin

Automatically exported from code.google.com/p/inno-download-plugin
zlib License
0 stars 0 forks source link

V512 A call of the 'memset' function will lead to underflow of the buffer 'buf'. trace.cpp 23 #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
diff -r 3662835f97ed idp/trace.cpp
--- a/idp/trace.cpp     Thu Dec 12 15:44:27 2013 +0300
+++ b/idp/trace.cpp     Thu Dec 26 16:22:32 2013 +0400
@@ -20,7 +20,7 @@
 tstring formatwinerror(DWORD error)
 {
        _TCHAR buf[1024];
-       memset(buf, 0, 1024);
+       memset(buf, 0, sizeof(buf));

Original issue reported on code.google.com by Pavel.Pimenov@gmail.com on 26 Dec 2013 at 12:23

GoogleCodeExporter commented 8 years ago
This issue was closed by revision a1a5526f4791.

Original comment by Mitric...@gmail.com on 9 Jan 2014 at 8:59

GoogleCodeExporter commented 8 years ago
Fixed.

Original comment by Mitric...@gmail.com on 9 Jan 2014 at 9:01