mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 15:48:54 +02:00
Merge branch 'protect-argv-string' into 'main'
gspawn-win32: Fix potential integer overflows in argv handling See merge request GNOME/glib!4570
This commit is contained in:
@@ -80,8 +80,8 @@ protect_wargv (gint argc,
|
|||||||
{
|
{
|
||||||
wchar_t *p = wargv[i];
|
wchar_t *p = wargv[i];
|
||||||
wchar_t *q;
|
wchar_t *q;
|
||||||
gint len = 0;
|
size_t len = 0;
|
||||||
gint pre_bslash = 0;
|
size_t pre_bslash = 0;
|
||||||
gboolean need_dblquotes = FALSE;
|
gboolean need_dblquotes = FALSE;
|
||||||
while (*p)
|
while (*p)
|
||||||
{
|
{
|
||||||
|
@@ -253,8 +253,8 @@ protect_argv_string (const gchar *string)
|
|||||||
{
|
{
|
||||||
const gchar *p = string;
|
const gchar *p = string;
|
||||||
gchar *retval, *q;
|
gchar *retval, *q;
|
||||||
gint len = 0;
|
size_t len = 0;
|
||||||
gint pre_bslash = 0;
|
size_t pre_bslash = 0;
|
||||||
gboolean need_dblquotes = FALSE;
|
gboolean need_dblquotes = FALSE;
|
||||||
while (*p)
|
while (*p)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user