Fixed bug in unicode byte detection ENGINE-400
authorKrista Bennett <krista@pep-project.org>
Mon, 12 Mar 2018 02:57:10 +0100
branchENGINE-400
changeset 256395183ae74227
parent 2562 a381a9bd101c
child 2564 2db5cc88bdd4
Fixed bug in unicode byte detection
src/etpan_mime.c
     1.1 --- a/src/etpan_mime.c	Mon Mar 12 02:37:00 2018 +0100
     1.2 +++ b/src/etpan_mime.c	Mon Mar 12 02:57:10 2018 +0100
     1.3 @@ -902,7 +902,7 @@
     1.4      const char* cur_char_ptr = field_value;
     1.5      while (cur_char_ptr < end_ptr) {
     1.6          char cur_char = *cur_char_ptr;
     1.7 -        if (cur_char > 127)
     1.8 +        if (cur_char > 127 || cur_char < 0)
     1.9              return true;
    1.10          // FIXME - do we need to deal with CRCRLF here?
    1.11          //         I guess in the worst case, it gets encoded, which