Detecting and fixing stringprintf.h format bugs
The print functions in stringprintf.h were not annotated for /analyze so
13 Windows specific format-string bugs accumulated. This annotates the
functions so that the /analyze builder will find the problems and fixes
the bugs.
[email protected],[email protected],[email protected]
Skipping wstring presubmit checks - no new wstring usage is added
NOPRESUBMIT=true
BUG=427616
Review URL: https://codereview.chromium.org/1372153002
Cr-Commit-Position: refs/heads/master@{#352659}
diff --git a/ipc/handle_win.cc b/ipc/handle_win.cc
index 5d25905..51f3f95f 100644
--- a/ipc/handle_win.cc
+++ b/ipc/handle_win.cc
@@ -48,7 +48,7 @@
// static
void ParamTraits<HandleWin>::Log(const param_type& p, std::string* l) {
- l->append(base::StringPrintf("0x%X", p.get_handle()));
+ l->append(base::StringPrintf("0x%p", p.get_handle()));
l->append(base::IntToString(p.get_permissions()));
}