Re: [PATCH] Prevent git-config from storing section keys that are too long

2012-09-06 Thread Ben Walton
Excerpts from Junio C Hamano's message of Thu Sep 06 21:33:20 -0400 2012: Hi Junio, > > identifiers generated from keys like: > > > > url./some/really/long/path.insteadOf > > > > could overrun the current limit. It's not a common case, of course, > > or this issue would have been found sooner.

Re: [PATCH] Prevent git-config from storing section keys that are too long

2012-09-06 Thread Junio C Hamano
Ben Walton writes: > Key names have a length limit defined by MAXNAME in config.c. When > reading the config file, we reserve half of this limit for the section > identifier and the other half for the key name within that section. > > For example, if setting a key named url.foo.insteadOf, url.fo

[PATCH] Prevent git-config from storing section keys that are too long

2012-09-06 Thread Ben Walton
Key names have a length limit defined by MAXNAME in config.c. When reading the config file, we reserve half of this limit for the section identifier and the other half for the key name within that section. For example, if setting a key named url.foo.insteadOf, url.foo may use at most half of MANX