eff2b7558e9806b284bfd562e7ae52c1426f0c78 braney Sat Mar 5 17:27:05 2022 -0800 increase the maxSize of the buffer in udc diff --git src/lib/udc.c src/lib/udc.c index bf775a2..e6c831a 100644 --- src/lib/udc.c +++ src/lib/udc.c @@ -1890,31 +1890,31 @@ url, (long long)size, (long long)maxSize); char *buf = needLargeMem(size+1); udcMustRead(file, buf, size); buf[size] = 0; // add trailing zero for string processing udcFileClose(&file); if (retSize != NULL) *retSize = size; return buf; } struct lineFile *udcWrapShortLineFile(char *url, char *cacheDir, size_t maxSize) /* Read in entire short (up to maxSize) url into memory and wrap a line file around it. * The cacheDir may be null in which case udcDefaultDir() will be used. If maxSize * is zero then a default value (currently 64 meg) will be used. */ { -if (maxSize == 0) maxSize = 64 * 1024 * 1024; +if (maxSize == 0) maxSize = 256 * 1024 * 1024; char *buf = udcFileReadAll(url, cacheDir, maxSize, NULL); return lineFileOnString(url, TRUE, buf); } void udcSeekCur(struct udcFile *file, bits64 offset) /* Seek to a particular position in file. */ { file->ios.udc.numSeeks++; file->offset += offset; if (udcCacheEnabled()) ourMustLseek(&file->ios.sparse,file->fdSparse, offset, SEEK_CUR); } void udcSeek(struct udcFile *file, bits64 offset) /* Seek to a particular position in file. */