Line
Link Here
|
|
libc6-2.13-33 causes an infinite recursion in vfprintf |
|
libc6-2.13-33 causes an infinite recursion in vfprintf |
1 |
which calls free(0). |
1 |
which calls free(0). |
2 |
This patch disables error reporting on free(0). |
2 |
This patch disables error reporting on free(0). |
3 |
As a consequence it will fail one of the special tests, |
3 |
As a consequence it will fail one of the special tests, |
4 |
but it fixes the segfaults. |
4 |
but it fixes the segfaults. |
5 |
. |
5 |
. |
6 |
dmalloc (5.5.2-3) unstable; urgency=low |
6 |
dmalloc (5.5.2-3) unstable; urgency=low |
7 |
. |
7 |
. |
8 |
* fix recursion in libc |
8 |
* fix recursion in libc |
9 |
-- dmalloc-5.5.2.orig/malloc.c |
9 |
++ dmalloc-5.5.2/malloc.c |
Lines 1030-1036
int dmalloc_free(const char *file, const
Link Here
|
1030 |
const int func_id) |
1030 |
const int func_id) |
1031 |
{ |
1031 |
{ |
1032 |
int ret; |
1032 |
int ret; |
1033 |
|
1033 |
if(NULL==pnt) |
|
|
1034 |
return FREE_NOERROR; |
1035 |
|
1034 |
if (! dmalloc_in(file, line, 1)) { |
1036 |
if (! dmalloc_in(file, line, 1)) { |
1035 |
if (tracking_func != NULL) { |
1037 |
if (tracking_func != NULL) { |
1036 |
tracking_func(file, line, func_id, 0, 0, pnt, NULL); |
1038 |
tracking_func(file, line, func_id, 0, 0, pnt, NULL); |