mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-11-05 18:48:55 +01:00
Merge branch 'backtrace_oob' into 'main'
gbacktrace: Fix OOB write in stack_trace See merge request GNOME/glib!4701
This commit is contained in:
@@ -497,7 +497,7 @@ stack_trace (const char * const *args)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
if (idx < BUFSIZE)
|
if (idx < BUFSIZE - 1)
|
||||||
buffer[idx++] = c;
|
buffer[idx++] = c;
|
||||||
if ((c == '\n') || (c == '\r'))
|
if ((c == '\n') || (c == '\r'))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user