DescriptionDon't pass a string16 to %s.
clang warns:
..\..\win8\delegate_execute\delegate_execute.cc(97,39) : error(clang): cannot pass object of non-trivial type 'const base::string16' (aka 'const basic_string<wchar_t, char_traits<wchar_t>, allocator<wchar_t> >') through variadic function; call will abort at runtime [-Wnon-pod-varargs]
operation.mutex().c_str(), operation.relaunch_flags());
^
1 error generated.
How did this every work? My guess is that %s interpreted the size_
member variable at the start of string16 as C string, and since the size
usually has a at least the upper byte set to 0, this ended up logging
1-2 garbage bytes.
BUG=82385
NOTRY=true
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=281750
Patch Set 1 #
Messages
Total messages: 8 (0 generated)
|