[glib: 1/4] tests: Increase buffer size for g_strlcat() tests



commit 7541085589bee16f023790611f1776d6ce667fb6
Author: Philip Withnall <withnall endlessm com>
Date:   Thu May 2 13:27:53 2019 +0100

    tests: Increase buffer size for g_strlcat() tests
    
    There was a buffer overflow on the last g_strlcat() call in the test.
    
    Signed-off-by: Philip Withnall <withnall endlessm com>
    
    Fixes: #1768

 glib/tests/strfuncs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/tests/strfuncs.c b/glib/tests/strfuncs.c
index 131b33ca3..8644617f6 100644
--- a/glib/tests/strfuncs.c
+++ b/glib/tests/strfuncs.c
@@ -312,7 +312,7 @@ static void
 test_strlcat (void)
 {
   gchar *str = "The quick brown fox jumps over the lazy dog";
-  gchar str_cpy[45] = { 0 };
+  gchar str_cpy[60] = { 0 };
   gsize str_cpy_size = 0;
 
   if (g_test_undefined ())


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]