saml2 1.0.9 → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5806ee95e988647a1593ddb8c9f833b1c0ae9064
4
- data.tar.gz: 536f3c655fb7e81ff79003f46dbd1f3d9ec76d3e
3
+ metadata.gz: 7c19f162d8dcc43d0a264bc4c1b1f1f0e497b476
4
+ data.tar.gz: e0d34ccb811ce49f36449d7ec843f2f58516a733
5
5
  SHA512:
6
- metadata.gz: 487c35b7ae581c8dcc89140341cbb7d1513eac561c571b416c4b5a889b2010eacfae9250f7462837425487b90dec337e0c26456c085cf392b2f3c55bb0ab63ca
7
- data.tar.gz: ac21dc27daa7f8297187dd7f7a2f9797fdb9fe3c4bb986d7d258edd296a9709ab1ec2a9b3fea0b89fd2b251fec4547ccef31b08c06352459f14ca79d6a49dfc4
6
+ metadata.gz: 70083ff8f78e8eaf3302c548babff43b54478d7bc5dc45346612e18b378695570dbcae619c1776150d80bee59f60dcf658b7848fd78fe0e9e3b592f7e6c7468a
7
+ data.tar.gz: 863e91a34172a34526f20935b092160185e2189edf3881d98e7cb82d577c89d16ff1d5a4c21ad0b08eee602348523b74326409161b5d0aa59e84191f6baaef1d
@@ -17,7 +17,7 @@ module SAML2
17
17
  begin
18
18
  raise MessageTooLarge if authnrequest.bytesize > SAML2.config[:max_message_size]
19
19
  authnrequest = Base64.decode64(authnrequest)
20
- zstream = Zlib::Inflate.new
20
+ zstream = Zlib::Inflate.new(-Zlib::MAX_WBITS)
21
21
  xml = ''
22
22
  # do it in 1K slices, so we can protect against bombs
23
23
  (0..authnrequest.bytesize / 1024).each do |i|
@@ -1,3 +1,3 @@
1
1
  module SAML2
2
- VERSION = '1.0.9'
2
+ VERSION = '1.0.10'
3
3
  end
@@ -17,7 +17,54 @@ module SAML2
17
17
  end
18
18
 
19
19
  it "doesn't allow deflate bombs" do
20
- bomb = Base64.encode64(Zlib::Deflate.deflate("\0" * 2 *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@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saml2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-23 00:00:00.000000000 Z
11
+ date: 2017-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri