Thread (9 messages) flat view 9 messages, 2 authors, 2016-06-15

Re: [PATCH 1/2] Change error messages in ident.c...

From: Jeff King <hidden>
Date: 2016-06-15 22:53:49

Possibly related (same subject, not in this thread)

On Fri, May 11, 2012 at 03:53:43PM -0700, Junio C Hamano wrote:
quoted
quoted
I am also tempted to suggest that we simply replace the static buffers
with dynamic strbufs. I guess that may open up new vectors for an
attacker to convince git to allocate arbitrary amounts of memory, but
that is already pretty easy to do, so I doubt it's a big deal.
For reference, that patch would look like something like this:
Looks quite straight-forward and readable, I would say.  Not only you gave
us a legitimate excuse to get rid of the humourous messages, you lifted
most of the artificial limitations ('domainname' limit is still there but
that is not anything new) and use of strlcpy(), the last of which is a
huge win from my point of view ;-)
Thanks. I'll re-roll with a commit message, and a follow-on patch to fix
the "you don't exist" message. But probably tomorrow, as I am just
finishing gitting for the day.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help