Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Issue 295001: Routines in our upper file layers can't handle ".." or "symlinks" well (and a... (Closed)

Created:
11 years, 2 months ago by dmac
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, John Grabowski, pam+watch_chromium.org, brettw+cc_chromium.org
Visibility:
Public.

Description

Fix up ExtensionResource::CombinePathsSafely so that it can handle paths with .. in them safely. BUG=25131 TEST=Build unit_tests on Mac with default build location that contains a .. in the path. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29383

Patch Set 1 #

Total comments: 5

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -1 line) Patch
M chrome/common/extensions/extension_resource.cc View 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
dmac
Mark, pink: Please let me know if you think this is right.
11 years, 2 months ago (2009-10-17 17:31:21 UTC) #1
Mark Mentovai
dmac, thanks a bunch for this. I suspected that we needed to do this, but ...
11 years, 2 months ago (2009-10-17 18:18:10 UTC) #2
Mark Mentovai
(I had more to say, but I got a phone call and hit the wrong ...
11 years, 2 months ago (2009-10-17 18:24:16 UTC) #3
Mark Mentovai
Sorry, one more higher-level comment. Given what -[NSString stringByStandardizingPath:] is capable of doing, I think ...
11 years, 2 months ago (2009-10-17 18:46:56 UTC) #4
dmac
The problem I was running into specifically was paths that contain '..' and symlinks. Take ...
11 years, 2 months ago (2009-10-17 18:59:25 UTC) #5
dmac
(Reposting a message from Mark that didn't get into the review) Preface: Sorry to be ...
11 years, 2 months ago (2009-10-18 04:38:17 UTC) #6
dmac
> 4. It really looks to me like the > I-can't-resolve-dots-because-I-can't-ask-the-disk FilePath::IsParent > is absolutely ...
11 years, 2 months ago (2009-10-18 06:10:06 UTC) #7
Mark Mentovai
1. Update the CL description. 2. LGTM I'm not sure that the URL operations do ...
11 years, 2 months ago (2009-10-18 16:14:45 UTC) #8
brettw
11 years, 2 months ago (2009-10-19 03:38:28 UTC) #9
I'm not going to block this CL, but I'm still uncomfortable using GURL for local
file operations. 

I think there's an old internal bug about GURL *not* resolving .. and . like you
rely on in this changelist (I remember Peter was complaining we didn't send ".."
to his server which he relied on for something). Other browsers do not do this,
they only resolve .. when computing a relative URL on a page.

Powered by Google App Engine
This is Rietveld 408576698