git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* >4GiB source delta assertion failure
@ 2010-07-21 23:16 Ilari Liusvaara
  2010-08-21  5:00 ` [PATCH] fix " Nicolas Pitre
  0 siblings, 1 reply; 2+ messages in thread
From: Ilari Liusvaara @ 2010-07-21 23:16 UTC (permalink / raw)
  To: git

Yes, I know trying to delta-compress with 4GiB files is insane, but OTOH,
assertion failures are bugs by defintion.

Delta source: <4GiB of zeroes> <random 64KiB block>
Delta destination: <the same 64KiB block>

This was created using:
$ dd if=/dev/urandom of=test-delta-target bs=64k count=1
$ dd if=test-delta-target of=test-delta-source bs=64k seek=64k

Now running

$ ./test-delta -d test-delta-source test-delta-target test-delta-delta

Crashes with (v1.7.2):

test-delta: diff-delta.c:285: create_delta_index: Assertion `packed_entry - (struct index_entry *)mem == entries' failed.
Aborted


As note: The delta compression format does not allow delta compression to 
properly work in this case (since source offset would need to be 2^32 and
biggest possible offset is 2^32-1), and thus the size of output should be on
order of 66kB.

-Ilari

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-08-21  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-21 23:16 >4GiB source delta assertion failure Ilari Liusvaara
2010-08-21  5:00 ` [PATCH] fix " Nicolas Pitre

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).