ddb71276f45d5967f0d2249478ef1a4ffe854163
jcasper
  Fri May 10 17:04:45 2019 -0700
Fixing overflow bug with udcFileSize, no ticket

diff --git src/lib/udc.c src/lib/udc.c
index 8db8c8e..5b6898f 100644
--- src/lib/udc.c
+++ src/lib/udc.c
@@ -1991,31 +1991,31 @@
 	return 0;
     else
 	return  status.st_mtime;
     }
 return udc->updateTime;
 }
 
 off_t udcFileSize(char *url)
 /* fetch file size from given URL or local path 
  * returns -1 if not found. */
 {
 if (udcIsLocal(url))
     return fileSize(url);
 
 // don't go to the network if we can avoid it
-int cacheSize = udcSizeFromCache(url, NULL);
+off_t cacheSize = udcSizeFromCache(url, NULL);
 if (cacheSize!=-1)
     return cacheSize;
 
 off_t ret = -1;
 struct udcRemoteFileInfo info;
 
 if (startsWith("http://",url) || startsWith("https://",url))
     {
     if (udcInfoViaHttp(url, &info))
 	ret = info.size;
     }
 else if (startsWith("ftp://",url))
     {
     if (udcInfoViaFtp(url, &info))
 	ret = info.size;