git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [ANNOUNCE] GIT 1.5.4-rc3

From
IDIsmail Dönmez <ismail@pardus.org.tr>
Date
Jan 12, 2008, 13:10 UTC
Message-ID
<200801121510.41501.ismail@pardus.org.tr>
In-Reply-To
<20080112090432.GA6134@coredump.intra.peff.net>
Saturday 12 January 2008 11:04:32 tarihinde Jeff King şunları yazmıştı:
Show 28 quoted lines
> On Sat, Jan 12, 2008 at 09:47:48AM +0200, Ismail Dönmez wrote:
> > So looks like tests no longer work as root, so I run make test as normal
> > user and I now see t7300-clean.sh fail, this time a real failure:
> >
> > Removing part3.c
> > ./test-lib.sh: line 193: 19413 Aborted                 git-clean
> > * FAIL 5: git-clean with prefix
>
> I couldn't reproduce this just running the test, but running it under
> valgrind showed a memory access error. Fix is below.
>
> Junio, can you please sanity check this fix (it stops the valgrind
> error, but I want to make sure my assumptions about match_pathspec are
> right).
>
> -- >8 --
> git-clean: fix off-by-one memory access when given no arguments
>
> The "seen" variable is used by match_pathspec, and must have
> as many elements as there are in the given pathspec. We
> create the pathspec either from the command line arguments
> _or_ from just the current prefix.
>
> Thus allocating "seen" based upon just argc is wrong, since
> if argc == 0, then we still have one pathspec, the prefix,
> but we don't allocate any space in "seen".
>
> Signed-off-by: Jeff King <peff@peff.net>
Thanks Jefff, this fixes t7300-clean.sh for me.
Tested-by: İsmail Dönmez <ismail@pardus.org.tr>

Regards, ismail

-- 
Never learn by your mistakes, if you do you may never dare to try again.
Previous: René ScharfeNext: Johannes Schindelin
Message 13 of 29 in “[ANNOUNCE] GIT 1.5.4-rc3”
  1. Junio C HamanoJan 12, 2008
  2. Ismail DönmezJan 12, 2008
  3. Junio C HamanoJan 12, 2008
  4. Ismail DönmezJan 12, 2008
  5. Junio C HamanoJan 12, 2008
  6. Jeff KingJan 12, 2008
  7. Jeff KingJan 12, 2008
  8. valgrind test script integrationJeff King, Jan 12, 2008
  9. Jeff KingJan 12, 2008
  10. Johannes SchindelinJan 12, 2008
  11. Jeff KingJan 12, 2008
  12. René ScharfeJan 12, 2008
  13. Ismail DönmezJan 12, 2008
  14. Johannes SchindelinJan 12, 2008
  15. Jeff KingJan 12, 2008
  16. Junio C HamanoJan 12, 2008
  17. Roger C. SoaresJan 12, 2008
  18. Junio C HamanoJan 12, 2008
  19. [ANNOUNCE] GIT 1.5.4-rc4Junio C Hamano, Jan 21, 2008
  20. [ANNOUNCE] GIT 1.5.4-rc5Junio C Hamano, Jan 28, 2008
  21. Jeff KingJan 28, 2008
  22. Gustaf HendebyJan 29, 2008
  23. Junio C HamanoJan 29, 2008
  24. Jeff KingJan 29, 2008
  25. Steffen ProhaskaJan 29, 2008
  26. Steffen ProhaskaJan 13, 2008
  27. Steffen ProhaskaJan 21, 2008
  28. Johannes SchindelinJan 22, 2008
  29. Steffen ProhaskaJan 22, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.