Make File::Stat() and File::Lstat() receive FilePath
Previously they received `const char*` which is not bounds-safe. Since
all callers have a FilePath and this represents what they want to work
with, make them receive the FilePath and unpack a C string for calling
the C api internally.
R=agrieve@chromium.org
Bug: 40284755
Change-Id: I4a8c2731f6aee36007e7a398bdec1a7c793ae069
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5513504
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: danakj <danakj@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1296146}
NOKEYCHECK=True
GitOrigin-RevId: 9fa839d4981226c046f09feae79d28d7fb9a62d8
1 file changed