File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -85,18 +85,7 @@ static int create_file(const char *path, unsigned int mode)
85
85
void * read_blob_entry (const struct cache_entry * ce , size_t * size )
86
86
{
87
87
enum object_type type ;
88
- void * blob_data ;
89
- unsigned long trunc_size = (unsigned long )* size ;
90
-
91
- /*
92
- * On 64-bit Windows, unsigned long holds less than size_t. It should be very,
93
- * very rare that a file larger than 2^32 bytes ends up in a repository, but in
94
- * case it does, this dies rather than write corrupt data to the workdir.
95
- */
96
- if (trunc_size != * size )
97
- die_errno ("object too large to read on this platform" );
98
-
99
- blob_data = read_object_file (& ce -> oid , & type , (unsigned long * )size );
88
+ void * blob_data = read_object_file (& ce -> oid , & type , (unsigned long * )size );
100
89
101
90
if (blob_data ) {
102
91
if (type == OBJ_BLOB )
You can’t perform that action at this time.
0 commit comments