Re: [gmime-devel] Segfault when parsing invalid address list (spaces in addresses)



On 11/29/2010 09:41 AM, Damian Pietras wrote:
> The current gmime version (from git) will crash if there is an invalid
> white character in an address like this one:
>
> To: sdfsdf wp pl,s sdfsaf wp pl,t sfsdfec op pl
>
> It will read past the buffer. I've attached a simple patch to fix this
> bug.
>   

D'oh! Thanks for the bug report/patch!

I've fixed this in git using a different approach that at least
conserves the first and last addresses (the middle one is obviously
corrupted).

I've also added the example you gave to the unit tests.

How do you keep running into all these edge cases!? ;-)

Jeff



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]