Re: heads-up: git-index-pack in "next" is broken

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Nicolas Pitre <nico@...>
Cc: <git@...>
Date: Tuesday, October 17, 2006 - 9:30 pm

Nicolas Pitre <nico@cam.org> writes:


The part you pointed out to me about "accidental collision"
still bothers me somewhat.

Right now we do not produce ref-delta and ofs-delta in the same
stream, but if somebody did so then it would mean a disaster to
have an accidental collision of an 8-byte offset value plus
12-byte traiing NUL and another base object whose object name
happens to match that pattern.

I am actually Ok if we say the code assumes one stream has only
ref-delta or ofs-delta and never both.

But then I suspect the first pass of parse_pack_objects() should
make sure that assumption holds true for the pack being
inspected and barf if it is not.  Also the second pass do not
have to run two find_delta_childs() calls per delta object
because by that time we know which kind would never appear in
the packfile.

By the way can we call that find_delta_children() pretty please?

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
heads-up: git-index-pack in "next" is broken, Junio C Hamano, (Tue Oct 17, 12:55 am)
Re: heads-up: git-index-pack in "next" is broken, Nicolas Pitre, (Tue Oct 17, 11:39 am)
Re: heads-up: git-index-pack in "next" is broken, Junio C Hamano, (Tue Oct 17, 12:07 pm)
Re: heads-up: git-index-pack in "next" is broken, Nicolas Pitre, (Tue Oct 17, 1:00 pm)
Re: heads-up: git-index-pack in "next" is broken, Junio C Hamano, (Tue Oct 17, 2:11 pm)
Re: heads-up: git-index-pack in "next" is broken, Nicolas Pitre, (Tue Oct 17, 2:47 pm)
Re: heads-up: git-index-pack in "next" is broken, Sergey Vlasov, (Tue Oct 17, 3:36 pm)
Re: heads-up: git-index-pack in "next" is broken, Nicolas Pitre, (Tue Oct 17, 4:23 pm)
Re: heads-up: git-index-pack in "next" is broken, Linus Torvalds, (Tue Oct 17, 4:51 pm)
Re: heads-up: git-index-pack in "next" is broken, Junio C Hamano, (Tue Oct 17, 5:54 pm)
Re: heads-up: git-index-pack in "next" is broken, Nicolas Pitre, (Tue Oct 17, 9:38 pm)
Re: heads-up: git-index-pack in "next" is broken, Nicolas Pitre, (Tue Oct 17, 5:21 pm)
Re: heads-up: git-index-pack in "next" is broken, Linus Torvalds, (Tue Oct 17, 5:46 pm)
Re: heads-up: git-index-pack in "next" is broken, Nicolas Pitre, (Tue Oct 17, 8:20 pm)
Re: heads-up: git-index-pack in "next" is broken, Junio C Hamano, (Tue Oct 17, 9:30 pm)
Re: heads-up: git-index-pack in "next" is broken, Nicolas Pitre, (Tue Oct 17, 10:23 pm)
Re: heads-up: git-index-pack in "next" is broken, Junio C Hamano, (Wed Oct 18, 12:16 am)
Re: heads-up: git-index-pack in "next" is broken, Junio C Hamano, (Wed Oct 18, 1:07 am)
Re: heads-up: git-index-pack in "next" is broken, Nicolas Pitre, (Wed Oct 18, 9:02 am)
Re: heads-up: git-index-pack in "next" is broken, Johannes Schindelin, (Wed Oct 18, 6:00 am)
Re: heads-up: git-index-pack in "next" is broken, Nicolas Pitre, (Wed Oct 18, 9:13 am)
Re: heads-up: git-index-pack in "next" is broken, Linus Torvalds, (Tue Oct 17, 8:57 pm)
Re: heads-up: git-index-pack in "next" is broken, Nicolas Pitre, (Tue Oct 17, 10:08 pm)
Re: heads-up: git-index-pack in "next" is broken, Linus Torvalds, (Tue Oct 17, 11:12 pm)
Re: heads-up: git-index-pack in "next" is broken, Davide Libenzi, (Wed Oct 18, 2:09 am)
Re: heads-up: git-index-pack in "next" is broken, Linus Torvalds, (Wed Oct 18, 10:56 am)
Re: heads-up: git-index-pack in "next" is broken, Davide Libenzi, (Wed Oct 18, 12:17 pm)
Re: heads-up: git-index-pack in "next" is broken, Linus Torvalds, (Wed Oct 18, 12:52 pm)
Re: heads-up: git-index-pack in "next" is broken, Davide Libenzi, (Wed Oct 18, 5:21 pm)
Re: heads-up: git-index-pack in "next" is broken, Linus Torvalds, (Wed Oct 18, 5:48 pm)
Re: heads-up: git-index-pack in "next" is broken, Davide Libenzi, (Wed Oct 18, 6:34 pm)
Re: heads-up: git-index-pack in "next" is broken, Junio C Hamano, (Tue Oct 17, 4:10 pm)
Re: heads-up: git-index-pack in "next" is broken, Nicolas Pitre, (Tue Oct 17, 4:25 pm)