commit | ff012a3f3fc19cd1487cbaa4ab4ec525d3d876f8 | [log] [tgz] |
---|---|---|
author | Daniel Rosenberg <drosen@google.com> | Wed Apr 13 18:36:39 2016 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Wed Apr 13 18:36:39 2016 +0000 |
tree | 6db8191cb33a410869db635c234407dc13859ac0 | |
parent | 4a84f003215d817c3dd730d9059b854edd13a0e9 [diff] | |
parent | e2ff6ace7914f179e172d954deb6ea0dd45804e2 [diff] |
Merge "Fix overflow in path building" into nyc-dev
diff --git a/sdcard/sdcard.c b/sdcard/sdcard.c index befe38c..5c18f26 100644 --- a/sdcard/sdcard.c +++ b/sdcard/sdcard.c
@@ -341,7 +341,7 @@ ssize_t pathlen = 0; if (node->parent && node->graft_path == NULL) { - pathlen = get_node_path_locked(node->parent, buf, bufsize - namelen - 2); + pathlen = get_node_path_locked(node->parent, buf, bufsize - namelen - 1); if (pathlen < 0) { return -1; }