[Mulgara-svn] r2035 - in trunk: . src/jar/resolver/java/org/mulgara/resolver

pag at mulgara.org pag at mulgara.org
Wed Sep 21 22:41:32 UTC 2011


Author: pag
Date: 2011-09-21 22:41:31 +0000 (Wed, 21 Sep 2011)
New Revision: 2035

Modified:
   trunk/
   trunk/src/jar/resolver/java/org/mulgara/resolver/RestoreOperation.java
Log:
Ignoring mercurial config stuff


Property changes on: trunk
___________________________________________________________________
Modified: svn:ignore
   - bin
dist
jxtest
obj
test
tmp
*.log
server1
sqltest
testDatabase
testFile

   + bin
dist
jxtest
obj
test
tmp
*.log
server1
sqltest
testDatabase
testFile
.hg
.hgignore


Modified: trunk/src/jar/resolver/java/org/mulgara/resolver/RestoreOperation.java
===================================================================
--- trunk/src/jar/resolver/java/org/mulgara/resolver/RestoreOperation.java	2011-09-19 04:01:15 UTC (rev 2034)
+++ trunk/src/jar/resolver/java/org/mulgara/resolver/RestoreOperation.java	2011-09-21 22:41:31 UTC (rev 2035)
@@ -684,7 +684,9 @@
    * @throws IOException If there was an exception accessing the stream.
    */
   private static final String readLine(BufferedReader br) throws IOException {
-    return org.mulgara.util.io.IOUtil.readLine(br, MAX_LINE);
+    String result = org.mulgara.util.io.IOUtil.readLine(br, MAX_LINE);
+    if (result.length() == MAX_LINE) throw new IOException("Excessively sized blob in backup file.");
+    return result;
   }
 
   /**



More information about the Mulgara-svn mailing list