DescriptionMake base::ReadFileToString() return false on I/O error.
It seems inconsistent that ReadFileToString() currently returns false when encountering a file open error but true upon file read error. This CL forces the return value to false upon encountering any kind of error and documents this behaviour.
At that occasion, a test for path traversal prevention is added.
BUG=none
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267507
Patch Set 1 #
Total comments: 2
Patch Set 2 : Fix EXPECT_EQ() parameter order. #
Messages
Total messages: 10 (0 generated)
|