summaryrefslogtreecommitdiff
path: root/httemplate/edit/process
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-01-15 22:17:36 -0800
committerIvan Kohler <ivan@freeside.biz>2014-01-15 22:17:36 -0800
commit649606c0123e1c21b9b054abf63b2933d41df2cc (patch)
tree80e5d62b67ff9631948ccf71d1c85b7748c24dc1 /httemplate/edit/process
parent14ab966b8235505b035908eb00159901b0bbf1d5 (diff)
parent84f6470e43578bfdc0f57f3083e5924572e88a57 (diff)
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'httemplate/edit/process')
-rw-r--r--httemplate/edit/process/addr_range.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/httemplate/edit/process/addr_range.html b/httemplate/edit/process/addr_range.html
index 6b05d23a5..5df05596e 100644
--- a/httemplate/edit/process/addr_range.html
+++ b/httemplate/edit/process/addr_range.html
@@ -13,6 +13,11 @@
$cgi->param('end', $end->addr);
$cgi->param('start', $start->addr);
}
+ if ( $start + 0x7FFFFFFF <= $end ) {
+ # then this is going to overflow
+ return "Address ranges must be < 2^31 - 1 addresses long."
+ }
+
$cgi->param('length', $end - $start + 1);
} else {
$cgi->param('length', 1);