 Chromium Code Reviews
 Chromium Code Reviews Issue 8418034:
  Make string_util::WriteInto() DCHECK() that the supplied |length_with_null| > 1, meaning that the...  (Closed) 
  Base URL: svn://chrome-svn/chrome/trunk/src/
    
  
    Issue 8418034:
  Make string_util::WriteInto() DCHECK() that the supplied |length_with_null| > 1, meaning that the...  (Closed) 
  Base URL: svn://chrome-svn/chrome/trunk/src/| Index: base/rand_util.cc | 
| =================================================================== | 
| --- base/rand_util.cc (revision 107404) | 
| +++ base/rand_util.cc (working copy) | 
| @@ -71,6 +71,7 @@ | 
| } | 
| std::string RandBytesAsString(size_t length) { | 
| + DCHECK_GT(length, 0u); | 
| std::string result; | 
| RandBytes(WriteInto(&result, length + 1), length); | 
| return result; |