jstedfast / gmime

A C/C++ MIME creation and parser library with support for S/MIME, PGP, and Unix mbox spools.
GNU Lesser General Public License v2.1
115 stars 36 forks source link

Fix buffer overrun #140

Closed dagle closed 1 year ago

dagle commented 1 year ago

This fixes a buffer overrun in the charset-map generator. Without this fix you get duplicate charmaps because the hash function reads garbage data and can't detect that 2 buffers are equal. This should reduce the amount of duplicate buffers to 0.

jstedfast commented 1 year ago

This patch looks good, but I want to try to verify the fix later (I'm on Windows right now so it's not easy to verify).