copy: protect against overlapping extents
authorPádraig Brady <P@draigBrady.com>
Mon, 28 Mar 2011 18:22:21 +0000 (19:22 +0100)
committerPádraig Brady <P@draigBrady.com>
Fri, 1 Apr 2011 13:42:46 +0000 (14:42 +0100)
commitb56b53bd70b1f8fa2b5a95d4569bb72a2419b5cd
treebadf81e4bcc92cc77b8359aafb955a8a05ae9c8f
parent594292a1d89332dd006cd7fe3116cf46ebe9acf6
copy: protect against overlapping extents

* src/extent-scan.c (extent_scan_read): Add a more stringent check
for OFF_T overflow, to ensure subsequent code is immune.
Detect overlapping extents and adjust, so as files always copied.
Detection using a single scan with fallback to a standard copy
was thought too expensive in memory or time.
* NEWS: Mention the fix
NEWS
src/extent-scan.c