mirror of
https://github.com/google/security-research
synced 2026-06-08 14:27:23 +00:00
Update check-submission.py
This commit is contained in:
@@ -121,7 +121,8 @@ for submissionId in submissionIds:
|
||||
if cve != publicData["CVE"]:
|
||||
error(f"The CVE on the public spreadsheet for submission `{submissionId}` is `{publicData['CVE']}` but the PR is for `{cve}`.")
|
||||
|
||||
flagRegex = r"kernelCTF\{(?:[^:]*:)?(?:v1:([^:]+)|v2:([^:]+):([^:]*)):\d+\}"
|
||||
# Regular expression to handle kernelCTF flag without signature
|
||||
flagRegex = r"kernelCTF\{(?:[^:]+:)?(?:v1:([^:]+)|v2:([^:]+):([^:]*)):\d+\}"
|
||||
def flagTarget(flag):
|
||||
match = checkRegex(flag, flagRegex, f"The flag (`{flag}`) is invalid")
|
||||
if match.group(1):
|
||||
|
||||
Reference in New Issue
Block a user