mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-23 02:17:51 +02: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;
|
||||
case 1:
|
||||
if (idx < BUFSIZE)
|
||||
if (idx < BUFSIZE - 1)
|
||||
buffer[idx++] = c;
|
||||
if ((c == '\n') || (c == '\r'))
|
||||
{
|
||||
|
Reference in New Issue
Block a user