Index: chrome_frame/utils.cc |
=================================================================== |
--- chrome_frame/utils.cc (revision 107404) |
+++ chrome_frame/utils.cc (working copy) |
@@ -1328,6 +1328,7 @@ |
// Reads data from a stream into a string. |
HRESULT ReadStream(IStream* stream, size_t size, std::string* data) { |
DCHECK(stream); |
+ DCHECK_GT(size, 0u); |
DCHECK(data); |
DWORD read = 0; |