Johannes Schindelin ab16d5e4b1 mingw: be more defensive when making the environment block
Outside of our Windows-specific code, the end of the environment can be
marked also by a pointer to a NUL character, not only by a NULL pointer
as our code assumed so far.

That led to a buffer overrun in `make_environment_block()` when running
`git-remote-https` in `mintty` (because `curl_global_init()` added the
`CHARSET` environment variable *outside* of `mingw_putenv()`, ending the
environment in a pointer to an empty string).

Side note for future debugging on Windows: when running programs in
`mintty`, the standard input/output/error is not connected to a Win32
Console, but instead is pipe()d. That means that even stderr may not be
written completely before a crash, but has to be fflush()ed explicitly.
For example, when debugging crashes, the developer should insert an
`fflush(stderr);` at the end of the `error()` function defined in
usage.c.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2015-03-19 10:37:36 +01:00
2015-03-06 18:13:38 +01:00
2015-01-30 15:02:34 -07:00
2015-03-10 13:06:47 +01:00
2015-01-14 09:32:04 -08:00
2014-07-28 10:14:33 -07:00
2015-01-14 09:32:04 -08:00
2015-01-07 12:55:05 -08:00
2015-03-06 18:11:28 +01:00
2015-01-07 12:55:05 -08:00
2015-03-06 18:11:28 +01:00
2014-12-22 12:27:20 -08:00
2014-12-12 14:31:42 -08:00
2015-03-03 14:37:06 -08:00
2014-10-20 12:23:48 -07:00
2015-03-06 18:11:28 +01:00
2014-12-22 12:27:41 -08:00
2015-03-06 18:13:38 +01:00
2014-10-29 10:09:35 -07:00
2015-02-11 13:39:44 -08:00
2015-02-26 20:19:21 +00:00
2015-02-24 22:14:42 -08:00
2015-02-11 13:44:20 -08:00
2014-10-08 13:05:25 -07:00
2014-09-29 12:36:11 -07:00
2015-03-06 18:13:40 +01:00
2014-11-03 11:00:28 -08:00
2014-10-20 12:23:48 -07:00
2014-10-20 12:23:48 -07:00
2015-01-07 12:55:05 -08:00
2014-10-19 15:28:30 -07:00
2014-10-19 15:28:30 -07:00
2015-02-11 13:44:07 -08:00
2014-12-17 11:46:57 -08:00
2014-07-21 12:35:39 -07:00
2015-03-05 12:45:42 -08:00
2014-10-10 16:02:26 -07:00
2015-03-06 18:11:27 +01:00
2015-03-05 13:15:53 -08:00
2015-02-11 13:44:07 -08:00
2014-09-15 11:29:46 -07:00
2015-02-11 13:44:07 -08:00
2015-02-11 13:44:07 -08:00
2014-12-22 12:27:10 -08:00
2014-12-22 12:27:10 -08:00
2014-09-02 13:28:44 -07:00
2015-03-05 12:45:42 -08:00
2014-12-22 12:27:30 -08:00
2014-12-22 12:27:30 -08:00
2015-01-07 12:55:05 -08:00
2015-02-13 13:16:12 -08:00
2015-02-11 13:43:51 -08:00
2015-01-07 19:56:44 -08:00
2014-09-02 13:28:44 -07:00
2014-12-18 12:30:53 -08:00
2015-01-07 13:28:10 -08:00
2014-12-17 11:04:39 -08:00

Git for Windows

Join the chat at https://gitter.im/git-for-windows/git

This is the source code of Git for Windows, forked from Git.

If you encounter problems, you can report them as GitHub issues, discuss them on Git for Windows' Google Group, and contribute bug fixes.

Description
No description provided
Readme 633 MiB
Languages
C 50.5%
Shell 38.8%
Perl 4.4%
Tcl 3.2%
Python 0.8%
Other 2.1%