Henrique Pantarotto
2017-02-16 15:15:17 UTC
Hello friends!
One of my programs is presenting large memory usage, and I traced it down
to the mu_rfc2047_encode function that I'm using.
If you compile and run the program below, it will use all of your memory.
--start--
#include <stdio.h>
#include "mailutils/mailutils.h"
void main() {
char *value;
while(1) {
mu_rfc2047_encode("utf-8", "quoted-printable", "Any subject", &value);
printf("Result: %s\n", value);
if (value)
free(value);
}
}
--end--
I've tested this with the default "libmailutils-dev" (1:2.99.98-2) package
from Debian 8.7, but I've also tested with mailutils-3.1.1.
Perhaps I'm not using this function properly?
Thanks!
One of my programs is presenting large memory usage, and I traced it down
to the mu_rfc2047_encode function that I'm using.
If you compile and run the program below, it will use all of your memory.
--start--
#include <stdio.h>
#include "mailutils/mailutils.h"
void main() {
char *value;
while(1) {
mu_rfc2047_encode("utf-8", "quoted-printable", "Any subject", &value);
printf("Result: %s\n", value);
if (value)
free(value);
}
}
--end--
I've tested this with the default "libmailutils-dev" (1:2.99.98-2) package
from Debian 8.7, but I've also tested with mailutils-3.1.1.
Perhaps I'm not using this function properly?
Thanks!