Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1ed3e5d

Browse files
committed
Python points-to: Fix ordering of string constants.
1 parent 7181a02 commit 1ed3e5d

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

python/ql/src/semmle/python/pointsto/PointsTo.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1318,9 +1318,9 @@ module Expressions {
13181318
or
13191319
val.strValue() < other.strValue() and result = -1
13201320
or
1321-
val.strValue() > other.strValue() and result = 0
1321+
val.strValue() > other.strValue() and result = 1
13221322
or
1323-
val.strValue() = other.strValue() and result = 1
1323+
val.strValue() = other.strValue() and result = 0
13241324
}
13251325

13261326
pragma [nomagic]

python/ql/test/library-tests/PointsTo/comparisons/PointsTo.expected

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
| 2 | bool False |
21
| 2 | bool True |
32
| 3 | bool False |
43
| 6 | bool True |

0 commit comments

Comments
 (0)