Skip to content

Commit

Permalink
Fixed errors
Browse files Browse the repository at this point in the history
    * bin/fuzz:
    * lib/fuzz/fuzz.rb:
    * lib/fuzz/version.rb:
  • Loading branch information
jwillemsen committed Feb 27, 2020
1 parent 18b6942 commit 554a457
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
10 changes: 3 additions & 7 deletions bin/fuzz
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
#!/usr/bin/env ruby
# encoding: utf-8
#---------------------------------
#---------------------------------
if File.directory?(File.join(File.dirname(File.symlink?(__FILE__) ? File.expand_path(File.readlink(__FILE__)) : __FILE__), '..', 'lib','fuzz'))
$: << File.expand_path((File.join(File.dirname(File.symlink?(__FILE__) ? File.expand_path(File.readlink(__FILE__)) : __FILE__), '..', 'lib')))
end
$: << File.join(File.dirname(__FILE__), '..')
$: << File.join(File.dirname(__FILE__), '..', 'lib')

require 'fuzz.rb'
require 'fuzz/fuzz'

exit(Fuzz.run ? 0 : 1)
13 changes: 5 additions & 8 deletions lib/fuzz/fuzz.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,9 @@
require 'fuzz/system'
require 'fuzz/options'
require 'fuzz/fzzr'
require 'fuzz/version'

module Fuzz
VERSION_MAJOR,
VERSION_MINOR,
VERSION_RELEASE = VERSION.split('.')
COPYRIGHT = "Copyright (c) 2012-#{Time.now.year} Remedy IT Expertise BV, The Netherlands".freeze

def self.root_path
f = File.expand_path(__FILE__)
Expand Down Expand Up @@ -242,8 +239,8 @@ def self.init_optparser
'List available Fuzzers and exit.') {
options.load_config
load_fuzzers
puts "TAOX11 fuzz checker #{VERSION_MAJOR}.#{VERSION_MINOR}.#{VERSION_RELEASE}"
puts COPYRIGHT
puts "TAOX11 fuzz checker #{FUZZ_VERSION_MAJOR}.#{FUZZ_VERSION_MINOR}.#{FUZZ_VERSION_RELEASE}"
puts FUZZ_COPYRIGHT
puts('%-30s %s' % %w{Fuzzer Description})
puts(('-' * 30)+' '+('-' * 48))
fuzzers.values.each { |fzzr| puts('%-30s %s' % [fzzr.fuzz_id, fzzr.description]) }
Expand All @@ -254,8 +251,8 @@ def self.init_optparser
opts.separator ""
opts.on('-V', '--version',
'Show version information and exit.') {
puts "TAOX11 fuzz checker #{VERSION_MAJOR}.#{VERSION_MINOR}.#{VERSION_RELEASE}"
puts COPYRIGHT
puts "TAOX11 fuzz checker #{FUZZ_VERSION_MAJOR}.#{FUZZ_VERSION_MINOR}.#{FUZZ_VERSION_RELEASE}"
puts FUZZ_COPYRIGHT
exit
}
opts.on('-h', '--help',
Expand Down
1 change: 1 addition & 0 deletions lib/fuzz/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ module Fuzz
FUZZ_VERSION_MINOR = 9.freeze
FUZZ_VERSION_RELEASE = 6.freeze
FUZZ_VERSION = "#{FUZZ_VERSION_MAJOR}.#{FUZZ_VERSION_MINOR}.#{FUZZ_VERSION_RELEASE}"
FUZZ_COPYRIGHT = "Copyright (c) 2012-#{Time.now.year} Remedy IT Expertise BV, The Netherlands".freeze

end

0 comments on commit 554a457

Please sign in to comment.