Sha256: dee03984fb98dd31ab933efd6a78204ae40ac10821fee48ff762998458823953

Contents?: true

Size: 454 Bytes

Versions: 2

Compression:

Stored size: 454 Bytes

Contents

#!/usr/bin/env ruby

require 'socket'
require_relative '../../lib/protocol/http2/framer'

def test
	framer = Protocol::HTTP2::Framer.new($stdin)
	
	while frame = framer.read_frame
		pp frame
	end
rescue EOFError
	# Ignore.
end

if ENV["_"] =~ /afl/
	require 'kisaten'
	
	Kisaten.crash_at [Exception], [EOFError, Protocol::HTTP2::FrameSizeError, Protocol::HTTP2::ProtocolError], Signal.list['USR1']
	
	while Kisaten.loop 10_000
		test
	end
else
	test
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
protocol-http2-0.14.1 fuzz/framer/script.rb
protocol-http2-0.14.0 fuzz/framer/script.rb