[Users] [Bug 4587] New: POPBUFSIZE too small for some OAUTH tokens

noreply at thewildbeast.co.uk noreply at thewildbeast.co.uk
Wed Apr 13 16:09:42 UTC 2022


https://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=4587

            Bug ID: 4587
           Summary: POPBUFSIZE too small for some OAUTH tokens
           Product: Claws Mail
           Version: GIT
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: POP3
          Assignee: users at lists.claws-mail.org
          Reporter: thewildbeast at mstoeckl.com

Created attachment 2282
  -->
https://www.thewildbeast.co.uk/claws-mail/bugzilla/attachment.cgi?id=2282&action=edit
Increase POPBUFSIZE and check for overflow

I recently needed to use Microsoft Exchange, and followed the very helpful
instructions at https://www.claws-mail.org/faq/index.php/Oauth2 . One of the
issues I encountered was that the Oauth2 access tokens used can be larger than
one of the buffers used to store them. The largest token size I saw was 3636
bytes, but pop3_gen_send silently truncates these tokens to POPBUFSIZE=512
bytes .

I've attached the patch that I use to increase POPBUFSIZE and warn when there
is an overflow.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Users mailing list