Files
git/builtin
John Keeping 89ccc1b09c builtin/mv: fix out of bounds write
When commit a88c915 (mv: move submodules using a gitfile, 2013-07-30)
added the submodule_gitfile array, it was not added to the block that
enlarges the arrays when we are moving a directory so that we do not
have to worry about it being a directory when we perform the actual
move.  After this, the loop continues over the enlarged set of sources.

Since we assume that submodule_gitfile has size argc, if any of the
items in the source directory are submodules we are guaranteed to write
beyond the end of submodule_gitfile.

Fix this by realloc'ing submodule_gitfile at the same time as the other
arrays.

Reported-by: Guillaume Gelin <contact@ramnes.eu>
Signed-off-by: John Keeping <john@keeping.me.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2014-03-11 14:44:21 -07:00
..
2013-09-09 14:36:15 -07:00
2013-10-31 13:47:35 -07:00
2013-09-17 11:42:31 -07:00
2013-12-09 14:54:47 -08:00
2013-09-17 11:37:33 -07:00
2013-10-23 13:21:31 -07:00
2013-10-23 13:21:31 -07:00
2013-09-09 14:36:15 -07:00
2013-10-31 11:12:24 -07:00
2014-03-11 14:44:21 -07:00
2013-10-23 13:21:26 -07:00
2013-09-11 14:56:59 -07:00
2013-09-20 12:36:12 -07:00
2013-07-15 10:56:07 -07:00
2013-09-20 12:36:12 -07:00
2013-09-09 14:36:15 -07:00