summaryrefslogtreecommitdiffstats
path: root/aurweb
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2016-10-11 08:22:03 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2016-10-11 08:36:40 +0200
commit29a5f94dab27cc64da6262b2f37bd856641ed292 (patch)
tree1d6a96cff746610a05e7eb75b723f81b14eeacc3 /aurweb
parent1492444ecbe68e4498a6f7ae0258c39ebbd47138 (diff)
downloadaur-29a5f94dab27cc64da6262b2f37bd856641ed292.tar.gz
aur-29a5f94dab27cc64da6262b2f37bd856641ed292.tar.xz
git-update: Catch long source URLs
Bail out early if the source array contains an entry with more than 8000 characters. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'aurweb')
-rwxr-xr-xaurweb/git/update.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/aurweb/git/update.py b/aurweb/git/update.py
index af2dfed8..3b84eb5d 100755
--- a/aurweb/git/update.py
+++ b/aurweb/git/update.py
@@ -337,6 +337,9 @@ def main():
for field in extract_arch_fields(pkginfo, 'source'):
fname = field['value']
+ if len(fname) > 8000:
+ die_commit('source entry too long: {:s}'.format(fname),
+ str(commit.id))
if "://" in fname or "lp:" in fname:
continue
if fname not in commit.tree: