DescriptionFix scoping of raw_bytes in URLRequestFileDirJob::OnListFile
data.info.GetName() returns a new FilePath object, and .value() thus
returns a reference to the string within that FilePath object.
This means that the FilePath object can vanish before the reference
to its contents is actually used - meaning whatever happens to be
on the stack will be accessed.
Fix by keeping a copy of the FilePath object in scope across call to
GetDirectoryListingEntry.
Introduced by r205019.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=231821
Patch Set 1 #Patch Set 2 : Use AppendASCII in unittest #
Messages
Total messages: 10 (0 generated)
|