Skip to content

Commit b4c893d

Browse files
thiggy1342aibaars
andauthored
Update ruby/ql/test/query-tests/security/decompression-api/decompression_api.rb
Co-authored-by: Arthur Baars <[email protected]>
1 parent 9c9ac91 commit b4c893d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ruby/ql/test/query-tests/security/decompression-api/decompression_api.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
class TestController < ActionController::Base
22
# this should get picked up
33
def unsafe_zlib_unzip
4-
Zlib::Inflate.inflate(params[:file])
4+
path = params[:file]
5+
Zlib::Inflate.inflate(path)
56
end
67

78
# this should not get picked up

0 commit comments

Comments
 (0)