Reviewed-by: Andrew Donnellan <[email protected]>
On 01/07/17 14:28, Daniel Axtens wrote:
Also picked up with afl-fuzz. Signed-off-by: Daniel Axtens <[email protected]> --- patchwork/parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patchwork/parser.py b/patchwork/parser.py index 37603f944150..eab0a7d39863 100644 --- a/patchwork/parser.py +++ b/patchwork/parser.py @@ -326,9 +326,9 @@ def find_author(mail): if not email: raise ValueError("Invalid 'From' header") - email = email.strip() + email = email.strip()[:255] if name is not None: - name = name.strip() + name = name.strip()[:255] try: person = Person.objects.get(email__iexact=email)
-- Andrew Donnellan OzLabs, ADL Canberra [email protected] IBM Australia Limited _______________________________________________ Patchwork mailing list [email protected] https://lists.ozlabs.org/listinfo/patchwork
