Closed detrio333 closed 1 month ago
Would you be able to step through this in a debugger for me? I don't have a system setup to build & debug gmime right now, so it'll be a while before I have the time to set all of that up to work on this issue.
If you could do it for me, it would speed up the process quite a bit.
I have no idea how to show bug case step by step in debugger. I can see infinity loop here https://github.com/jstedfast/gmime/blob/4100b76d2d06d3fa810cbaaee64f3bf42d7627bb/gmime/gmime-param.c#L802 But way to here is so long
My decision is using g_mime_object_get_content_type_parameter(object, "boundary")
without auto-generated boundary
I haven't simple solution infinity loop problem
We'll see if the above patch fixes things...
Can you build the latest code and run: ./tests/test-headers -vvvv
and paste the output for me?
This is confirmed fixed
I checked my app with gmime fuzzing test. Fuzzing suggests a little strange data nevertheless it's way to safete work
My oversimpified message:
char* text = "Content-Type: multipart/mixed;\n ќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќ="ќ";
I parsed it and set callback for
g_mime_message_foreach
.It causes infinity loop in finction
g_mime_param_list_encode
srcgmime-param.c
I know my message is strange, but I hope for safety work with any data GMIME_VERSION "3.2.13"
Thanks!