summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/ConfigConverter.java
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2013-09-17 10:59:33 +0200
committerArne Schwabe <arne@rfc2549.org>2013-09-17 10:59:33 +0200
commite86a9a41d289e107bf235baaac766c109f23a5c6 (patch)
tree5f0ada023813fceb18d4d48068954eaac420a0a5 /src/de/blinkt/openvpn/ConfigConverter.java
parent22b741e9a140eb70ea1772c1b6a43ef2ff3e1512 (diff)
Fix a few market console errors
Diffstat (limited to 'src/de/blinkt/openvpn/ConfigConverter.java')
-rw-r--r--src/de/blinkt/openvpn/ConfigConverter.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/de/blinkt/openvpn/ConfigConverter.java b/src/de/blinkt/openvpn/ConfigConverter.java
index 22109f81..75620455 100644
--- a/src/de/blinkt/openvpn/ConfigConverter.java
+++ b/src/de/blinkt/openvpn/ConfigConverter.java
@@ -35,7 +35,7 @@ public class ConfigConverter extends ListActivity {
public static final String IMPORT_PROFILE = "de.blinkt.openvpn.IMPORT_PROFILE";
- private VpnProfile mResult;
+ private VpnProfile mResult;
private ArrayAdapter<String> mArrayAdapter;
private List<String> mPathsegments;
@@ -306,7 +306,8 @@ public class ConfigConverter extends ListActivity {
InputStream input = new FileInputStream(file);
long len= file.length();
-
+ if (len > VpnProfile.MAX_EMBED_FILE_SIZE)
+ throw new IOException("File size of file to import too large.");
// Create the byte array to hold the data
byte[] bytes = new byte[(int) len];