Skip to content

Commit 3034640

Browse files
committed
wip
1 parent d98a9b0 commit 3034640

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

shared/util/codeql/util/UnboundList.qll

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,14 @@ module Make<LocationSig Location, InputSig<Location> Input> {
5454

5555
pragma[nomagic]
5656
private string interpretUnicodeCodePoint(int codePoint) {
57-
codePoint = [0, getRank(_)] and
58-
codePoint.toUnicode() = result and
59-
result != "." // used as element separator
57+
exists(int dot |
58+
dot.toUnicode() = "." and // used as element separator
59+
codePoint = getRank(_) - 1
60+
|
61+
if codePoint < dot
62+
then codePoint.toUnicode() = result
63+
else (codePoint + 1).toUnicode() = result
64+
)
6065
}
6166

6267
private int unicodeCodePoints() { result = strictcount(interpretUnicodeCodePoint(_)) }

0 commit comments

Comments
 (0)