summaryrefslogtreecommitdiffstats
path: root/library/cookiejar
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-03-22 21:24:31 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-03-22 21:24:31 (GMT)
commite1c726c81937a898424ddc4efeb08262ccd4755e (patch)
tree502147314fb725f5fc8545272795979254136ba1 /library/cookiejar
parenta6d607576155cf58086383d54e11cfea63080e5d (diff)
parent833501b319ba92edcf69ebbecc27cd6b3dbdad0c (diff)
downloadtcl-e1c726c81937a898424ddc4efeb08262ccd4755e.zip
tcl-e1c726c81937a898424ddc4efeb08262ccd4755e.tar.gz
tcl-e1c726c81937a898424ddc4efeb08262ccd4755e.tar.bz2
Merge 8.6
Diffstat (limited to 'library/cookiejar')
-rw-r--r--library/cookiejar/idna.tcl10
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cookiejar/idna.tcl b/library/cookiejar/idna.tcl
index 1ab9fc4..afc7128 100644
--- a/library/cookiejar/idna.tcl
+++ b/library/cookiejar/idna.tcl
@@ -152,14 +152,14 @@ namespace eval ::tcl::idna {
# Increase delta enough to advance the decoder's <n,i> state to
# <m,0>, but guard against overflow:
- if {$m-$n > (0xffffffff-$delta)/($h+1)} {
+ if {$m-$n > (0xFFFFFFFF-$delta)/($h+1)} {
throw {PUNYCODE OVERFLOW} "overflow in delta computation"
}
incr delta [expr {($m-$n) * ($h+1)}]
set n $m
foreach ch $in {
- if {$ch < $n && ([incr delta] & 0xffffffff) == 0} {
+ if {$ch < $n && ([incr delta] & 0xFFFFFFFF) == 0} {
throw {PUNYCODE OVERFLOW} "overflow in delta computation"
}
@@ -251,7 +251,7 @@ namespace eval ::tcl::idna {
set first 0
break
}
- if {[set w [expr {$w * ($base - $t)}]] > 0x7fffffff} {
+ if {[set w [expr {$w * ($base - $t)}]] > 0x7FFFFFFF} {
throw {PUNYCODE OVERFLOW} \
"excessively large integer computed in digit decode"
}
@@ -261,11 +261,11 @@ namespace eval ::tcl::idna {
# i was supposed to wrap around from out+1 to 0, incrementing n
# each time, so we'll fix that now:
- if {[incr n [expr {$i / $out}]] > 0x7fffffff} {
+ if {[incr n [expr {$i / $out}]] > 0x7FFFFFFF} {
throw {PUNYCODE OVERFLOW} \
"excessively large integer computed in character choice"
} elseif {$n > $max_codepoint} {
- if {$n >= 0x00d800 && $n < 0x00e000} {
+ if {$n >= 0x00D800 && $n < 0x00E000} {
# Bare surrogate?!
throw {PUNYCODE NON_BMP} \
[format "unsupported character U+%06x" $n]