mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-27 01:29:27 +00:00
fix memory leak and out-of-range writes
This commit is contained in:
1 parent
e77cc389d5
commit
854bd47cb8
1 file changed
+1
@@ -72,6 +72,7 @@ merge (char **dest, char **ps)
|
||||
return 0;
|
||||
}
|
||||
|
||||
dest = p;
|
||||
for (j = 0; ps[j]; j++)
|
||||
dest[i++] = ps[j];
|
||||
dest[i] = 0;
|
||||
|
||||
Reference in new issue
Block a user