Title: [171868] trunk/Source/WebKit2
- Revision
- 171868
- Author
- [email protected]
- Date
- 2014-07-31 10:40:49 -0700 (Thu, 31 Jul 2014)
Log Message
Fix uninitialized scalar variable
https://bugs.webkit.org/show_bug.cgi?id=135461
Patch by Przemyslaw Kuczynski <[email protected]> on 2014-07-31
Reviewed by Alexey Proskuryakov.
If fopen fails, returned ApplicationMemoryStats structure will be uninitialized
* Shared/linux/WebMemorySamplerLinux.cpp:
(WebKit::sampleMemoryAllocatedForApplication): Initialized applicationStats.
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (171867 => 171868)
--- trunk/Source/WebKit2/ChangeLog 2014-07-31 17:37:40 UTC (rev 171867)
+++ trunk/Source/WebKit2/ChangeLog 2014-07-31 17:40:49 UTC (rev 171868)
@@ -1,3 +1,15 @@
+2014-07-31 Przemyslaw Kuczynski <[email protected]>
+
+ Fix uninitialized scalar variable
+ https://bugs.webkit.org/show_bug.cgi?id=135461
+
+ Reviewed by Alexey Proskuryakov.
+
+ If fopen fails, returned ApplicationMemoryStats structure will be uninitialized
+
+ * Shared/linux/WebMemorySamplerLinux.cpp:
+ (WebKit::sampleMemoryAllocatedForApplication): Initialized applicationStats.
+
2014-07-31 Rohit Kumar <[email protected]>
Clean up the WebKit build from unused parameter warning in Webkit2/WebProcess module
Modified: trunk/Source/WebKit2/Shared/linux/WebMemorySamplerLinux.cpp (171867 => 171868)
--- trunk/Source/WebKit2/Shared/linux/WebMemorySamplerLinux.cpp 2014-07-31 17:37:40 UTC (rev 171867)
+++ trunk/Source/WebKit2/Shared/linux/WebMemorySamplerLinux.cpp 2014-07-31 17:40:49 UTC (rev 171868)
@@ -86,7 +86,7 @@
static ApplicationMemoryStats sampleMemoryAllocatedForApplication()
{
- ApplicationMemoryStats applicationStats;
+ ApplicationMemoryStats applicationStats = {0, 0, 0, 0, 0, 0, 0};
char processPath[maxProcessPath];
snprintf(processPath, maxProcessPath, "/proc/self/statm");
FILE* statmFileDescriptor = fopen(processPath, "r");
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes