Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1446)

Unified Diff: content/child/font_warmup_win.cc

Issue 2528243002: Fix silent truncations when extracting values from CheckedNumeric (Closed)
Patch Set: compile cleanup and fix Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/child/font_warmup_win.cc
diff --git a/content/child/font_warmup_win.cc b/content/child/font_warmup_win.cc
index 2d3f2323d6cf54d0e64dda6b2105384ae0f9a0b4..739246ba781547d702775424b1152ffb3d02768c 100644
--- a/content/child/font_warmup_win.cc
+++ b/content/child/font_warmup_win.cc
@@ -150,7 +150,8 @@ class FakeGdiObjectFactory {
base::AutoLock scoped_lock(objects_lock_);
curr_handle_++;
// We don't support wrapping the fake handle value.
- void* handle = reinterpret_cast<void*>(curr_handle_.ValueOrDie());
+ void* handle = reinterpret_cast<void*>(
+ static_cast<uintptr_t>(curr_handle_.ValueOrDie()));
scoped_refptr<FakeGdiObject> object(new FakeGdiObject(magic, handle));
objects_[handle] = object;
return object;

Powered by Google App Engine
This is Rietveld 408576698