From 2b65c7598817864397a3077cf1a914b3e566bc56 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Walter=20D=C3=B6rwald?= Date: Thu, 30 Aug 2007 15:35:26 +0000 Subject: [PATCH] Set startinpos before calling the error handler. --- Objects/unicodeobject.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 24b2bf384e..208bc88636 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -1507,6 +1507,7 @@ PyObject *PyUnicode_DecodeUTF7(const char *s, } } else if (SPECIAL(ch,0,0)) { + startinpos = s-starts; errmsg = "unexpected special character"; s++; goto utf7Error; -- 2.50.0