Using fixed size debug string buffers now.
This commit is contained in:
parent
cff721f23b
commit
eafc49b154
@ -349,7 +349,7 @@ char **winpr_backtrace_symbols(void *buffer, size_t *used)
|
||||
{
|
||||
HANDLE process = GetCurrentProcess();
|
||||
t_win_stack *data = (t_win_stack *)buffer;
|
||||
size_t line_len = (data->max > 1024) ? data->max : 1024;
|
||||
size_t line_len = 1024;
|
||||
size_t i;
|
||||
char *lines = calloc(data->used + 1, sizeof(char *) * line_len);
|
||||
char **vlines = (char **)lines;
|
||||
|
Loading…
Reference in New Issue
Block a user