mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
add constraint that i should be between 0 and 65535
This commit is contained in:
@@ -105,6 +105,8 @@ private int toHex(string hex) {
|
||||
*/
|
||||
bindingset[i]
|
||||
string to4digitHex(int i) {
|
||||
i >= 0 and
|
||||
i <= 65535 and
|
||||
result =
|
||||
"0123456789abcdef".charAt(i.bitShiftRight(12).bitAnd(15)) +
|
||||
"0123456789abcdef".charAt(i.bitShiftRight(8).bitAnd(15)) +
|
||||
|
||||
Reference in New Issue
Block a user