CodeQL library for Ruby
codeql/ruby-all 0.8.15-dev (changelog, source)
Search

Predicate parseOctalInt

Gets the integer value of octal when interpreted as octal. octal must be a valid octal string containing only the digits 0-7. For values greater than 17777777777 (2^31-1, the maximum value that int can represent), there is no result.

"0"        => 0
"77"       => 63
"76543210" => 16434824

Import path

import codeql.util.Numbers
int parseOctalInt(string octal)