{"thread":{"id":"18971","subject":"[PATCH] Fix off-by-one in read_tree_recursive","startedAt":"2009-04-20T17:44:53Z","lastAt":"2009-04-21T05:33:34Z","messageCount":5,"participants":["Johannes Schindelin","Andy Lester","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"111758","messageId":"f62793069ecb99138c435edf37533906c4aae301.1240249482u.git.johannes.schindelin@gmx.de","threadId":"18971","inReplyTo":"cover.1240249482u.git.johannes.schindelin@gmx.de","subject":"[PATCH] Fix off-by-one in read_tree_recursive","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2009-04-20T17:44:53Z","receivedAt":"2009-04-20T17:44:53Z","isPatch":true,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Found by valgrind.\n\nSigned-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>\n---\n tree.c |    1 +\n 1 files changed, 1 insertions(+), 0 deletions(-)\n\ndiff --git a/tree.c b/tree.c\nindex 0d703a0..5ab90af 100644\n--- a/tree.c\n+++ b/tree.c\n@@ -62,6 +62,7 @@ static int match_tree_entry(const char *base, int baselen, const char *path, uns\n \t\t\t\tcontinue;\n \t\t\t/* pathspecs match only at the directory boundaries */\n \t\t\tif (!matchlen ||\n+\t\t\t    baselen == matchlen ||\n \t\t\t    base[matchlen] == '/' ||\n \t\t\t    match[matchlen - 1] == '/')\n \t\t\t\treturn 1;\n-- \n1.6.2.1.493.g67cf3\n"},{"id":"111762","messageId":"872ACD6C-B99B-4BE4-BD7C-3A7B3255B3E1@petdance.com","threadId":"18971","inReplyTo":"f62793069ecb99138c435edf37533906c4aae301.1240249482u.git.johannes.schindelin@gmx.de","subject":"valgrind","fromName":"Andy Lester","fromEmail":"andy@petdance.com","sentAt":"2009-04-20T18:06:51Z","receivedAt":"2009-04-20T18:06:51Z","isPatch":false,"sender":{"key":"andy@petdance.com","avatar":"https://gravatar.com/avatar/997ccaea115635c2be5051f455bbe6287c0f13aa59c96e1d6eb21ba3589239fb?d=mp&s=160"},"body":"\nOn Apr 20, 2009, at 12:44 PM, Johannes Schindelin wrote:\n\n> Found by valgrind.\n\n\nHow are you running valgrind?  Do you have a test suite for it?  A  \nmake target?\n\nxoa\n\n\n--\nAndy Lester => andy@petdance.com => www.theworkinggeek.com => AIM:petdance\n"},{"id":"111765","messageId":"alpine.DEB.1.00.0904202033220.6771@intel-tinevez-2-302","threadId":"18971","inReplyTo":"872ACD6C-B99B-4BE4-BD7C-3A7B3255B3E1@petdance.com","subject":"Re: valgrind","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2009-04-20T18:34:58Z","receivedAt":"2009-04-20T18:34:58Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Mon, 20 Apr 2009, Andy Lester wrote:\n\n> On Apr 20, 2009, at 12:44 PM, Johannes Schindelin wrote:\n> \n> >Found by valgrind.\n> \n> How are you running valgrind?  Do you have a test suite for it?  A make \n> target?\n\nYes, it was merged into Git:\n\nhttp://repo.or.cz/w/alt-git.git?a=commitdiff;h=8a61097cde387870921e822bdf90b4ffd3792845\n\nHth,\nDscho\n"},{"id":"111766","messageId":"FCFFBD39-6C9E-4D7E-B28F-4AF0E5B9E5EB@petdance.com","threadId":"18971","inReplyTo":"alpine.DEB.1.00.0904202033220.6771@intel-tinevez-2-302","subject":"Re: valgrind","fromName":"Andy Lester","fromEmail":"andy@petdance.com","sentAt":"2009-04-20T18:36:19Z","receivedAt":"2009-04-20T18:36:19Z","isPatch":false,"sender":{"key":"andy@petdance.com","avatar":"https://gravatar.com/avatar/997ccaea115635c2be5051f455bbe6287c0f13aa59c96e1d6eb21ba3589239fb?d=mp&s=160"},"body":"\nOn Apr 20, 2009, at 1:34 PM, Johannes Schindelin wrote:\n\n> Yes, it was merged into Git:\n>\n> http://repo.or.cz/w/alt-git.git?a=commitdiff;h=8a61097cde387870921e822bdf90b4ffd3792845\n\n\nVery cool.  In my Copious Free Time, I'm trying to get a splint target  \nbuilt up.\n\nxoxo,\nAndy\n\n--\nAndy Lester => andy@petdance.com => www.theworkinggeek.com => AIM:petdance\n"},{"id":"111836","messageId":"7vk55ebmfl.fsf@gitster.siamese.dyndns.org","threadId":"18971","inReplyTo":"f62793069ecb99138c435edf37533906c4aae301.1240249482u.git.johannes.schindelin@gmx.de","subject":"Re: [PATCH] Fix off-by-one in read_tree_recursive","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2009-04-21T05:33:34Z","receivedAt":"2009-04-21T05:33:34Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Thanks.\n.\n"}]}