commit | 4f5e8b3ca489245005b76176ac6d28f5f184f3fe | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Thu Jun 11 19:13:37 2015 -0700 |
committer | Jeff Sharkey <jsharkey@android.com> | Thu Jun 11 19:16:27 2015 -0700 |
tree | 2b7975f534d07dfc7759cd5461630457b31759f5 | |
parent | 47b872d9c36347382dd24ad5c3f70490d8fcbb23 [diff] |
Valid filenames have length limits! ext4 filenames are at most 255 bytes. vfat filenames are bit more lax, but we're often saving them on ext4 through a FUSE daemon, so limit them the same way. Since package names are used as directory names, verify that they're valid filenames. Tests to verify behavior. Bug: 18689171 Change-Id: If7df4c40d352954510b71de4ff05d78259c721ed