Bug#376577: realloc(): invalid pointer when reading mail spool

2006-07-16 Thread Andre Grueneberg
Peter Karlsson wrote: > >Hmmm, I tried to create messages with 16000, 17000 and 32000 characters in > >a line, but this didn't trigger the bug. :/ > I was just able to create a message that would crash uqwk. Unfortunately, > it was the version with my proposed fix for the bug, so I will have to

Bug#376577: realloc(): invalid pointer when reading mail spool

2006-07-16 Thread Peter Karlsson
Andre Grueneberg: Hmmm, I tried to create messages with 16000, 17000 and 32000 characters in a line, but this didn't trigger the bug. :/ I was just able to create a message that would crash uqwk. Unfortunately, it was the version with my proposed fix for the bug, so I will have to investigat

Bug#376577: realloc(): invalid pointer when reading mail spool

2006-07-16 Thread Andre Grueneberg
Hi Peter, Peter Karlsson wrote: > >Another measure I could think of, would be to make buf a dynamically > >allocated array and malloc() BUFLEN bytes on program startup. I have not > >checked the code whether this might be feasible. > Yes, that is the solution I am looking into. It would be easie

Bug#376577: realloc(): invalid pointer when reading mail spool

2006-07-16 Thread Peter Karlsson
Andre Grueneberg: Another measure I could think of, would be to make buf a dynamically allocated array and malloc() BUFLEN bytes on program startup. I have not checked the code whether this might be feasible. Yes, that is the solution I am looking into. It would be easier to check if it actu

Bug#376577: realloc(): invalid pointer when reading mail spool

2006-07-16 Thread Andre Grueneberg
Hi Peter, Peter Karlsson wrote: > >By replacing fgets() in this location, I could make uqwk work, but as > >there are plenty of other Fgets()s in the code, this seems to require > >further analysis. > Yes, there seems to be a bit of a misunderstanding between these files. Do > you have an example

Bug#376577: realloc(): invalid pointer when reading mail spool

2006-07-15 Thread Peter Karlsson
Andre Grueneberg: By replacing fgets() in this location, I could make uqwk work, but as there are plenty of other Fgets()s in the code, this seems to require further analysis. Yes, there seems to be a bit of a misunderstanding between these files. Do you have an example of a message that caus

Bug#376577: realloc(): invalid pointer when reading mail spool

2006-07-03 Thread Andre Grueneberg
Package: uqwk-spool Version: 2.21-12 Severity: important When running # uqwk +m -H I something get the following error (if there is some pattern in at least one mail -- mostly spam): *** glibc detected *** realloc(): invalid pointer: 0x08057520 *** Aborted By reading the source, I found that