add framework test

This commit is contained in:
thiggy1342
2022-06-15 01:37:52 +00:00
committed by GitHub
parent 098101f471
commit a0f1c86031
3 changed files with 7 additions and 0 deletions

View File

@@ -0,0 +1 @@
| Archive.rb:2:12:2:35 | call to open |

View File

@@ -0,0 +1,4 @@
private import ruby
private import codeql.ruby.frameworks.Archive
query predicate rubyZipFileOpens(RubyZip::RubyZipFileOpen f) { any() }

View File

@@ -0,0 +1,2 @@
# `foo_file` is a RubyZip `Zip::File.open` instance
foo_file = Zip::File.open(filename)