OSDN Git Service

vsprintf: Fix off-by-one bug in bstr_printf() processing dereferenced pointers
[uclinux-h8/linux.git] / lib / vsprintf.c
index d5b3a3f..812e59e 100644 (file)
@@ -2794,7 +2794,7 @@ int bstr_printf(char *buf, size_t size, const char *fmt, const u32 *bin_buf)
                                                copy = end - str;
                                        memcpy(str, args, copy);
                                        str += len;
-                                       args += len;
+                                       args += len + 1;
                                }
                        }
                        if (process)