Skip to content
Snippets Groups Projects
Commit c4178bed authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

link to upstream ticket

parent 9999c37a
No related branches found
No related tags found
1 merge request!275Depend on/Compatibility with Tahoe-LAFS 1.17.0
......@@ -829,6 +829,8 @@ def get_stat(sharepath):
with open(sharepath, "rb") as share_file:
magic = share_file.read(32)
if len(magic) < 32:
# Tahoe could check for this.
# https://tahoe-lafs.org/trac/tahoe-lafs/ticket/3853
raise ValueError("Share file has short header")
if ShareFile.is_valid_header(magic):
return stat_bucket
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment