]> diplodocus.org Git - nmh/commit
Fixed memory corruption in post(1) and inc(1) when using XOAUTH2.
authorDavid Levine <levinedl@acm.org>
Fri, 11 Sep 2020 00:55:26 +0000 (20:55 -0400)
committerDavid Levine <levinedl@acm.org>
Fri, 11 Sep 2020 00:55:26 +0000 (20:55 -0400)
commitbe5ee307cc4ab5db4387fea8d5f6b8caf748ab31
tree582bce3d26446587ecae2a650c3829c5025166f1
parent4d5d51e903a42c23800540930244448c4aacae16
Fixed memory corruption in post(1) and inc(1) when using XOAUTH2.

An internal table for the oauth entries was initially sized at 4,
and then reallocated if the user had more than 4.  However, the
reallocation didn't account for the size of the allocated
structure.

Also, increased the initial size to 16, trading off slightly
increased memory usage for performance.

Fix to commit 29ff4f879.
docs/pending-release-notes
sbr/oauth.c
test/oauth/test-send