Giter Club home page Giter Club logo

wizardry's Introduction

wizardry

build status codecov Go Report Card GoDoc MIT licensed

wizardry is a toolkit to deal with libmagic rule files (sources, not compiled)

It contains:

  • A parser, which turn magic rule files into an AST
  • An interpreter, which identifies a target by following the rules in the AST
  • A compiler, which generates go code to follow the rules in the AST

License

wizardry is released under the MIT license, see the LICENSE file for details.

wizardry's People

Contributors

fasterthanlime avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

wizardry's Issues

slice bounds out of range

/c/U/a/A/R/i/a/nsis โฏโฏโฏ butler configure .
โˆ™ Collecting initial candidates
panic: runtime error: slice bounds out of range

goroutine 1 [running]:
github.com/itchio/butler/vendor/github.com/fasterthanlime/wizardry/wizardry/wizutil.(*ByteView).Get(0xc04203a938, 0x17888, 0x4)
        C:/msys64/home/amos/Dev/go/src/github.com/itchio/butler/vendor/github.com/fasterthanlime/wizardry/wizardry/wizutil/byteview.go:37 +0x147
github.com/itchio/butler/vendor/github.com/fasterthanlime/wizardry/wizardry.StringTest(0xc0421c3800, 0x17888, 0xa0cb26, 0x4, 0x0, 0xffffffffffffffff)
        C:/msys64/home/amos/Dev/go/src/github.com/itchio/butler/vendor/github.com/fasterthanlime/wizardry/wizardry/string.go:41 +0xec
github.com/itchio/butler/vendor/github.com/fasterthanlime/spellbook.Identify(0xc0421c3800, 0x0, 0x5442b5, 0x0, 0xc04216fd40)
        C:/msys64/home/amos/Dev/go/src/github.com/itchio/butler/vendor/github.com/fasterthanlime/spellbook/book.go:1166 +0xd65a
github.com/itchio/butler/configurator.sniffPE(0xdbb700, 0xc04205c120, 0x62ce, 0x4, 0x1, 0x0)
        C:/msys64/home/amos/Dev/go/src/github.com/itchio/butler/configurator/configure.go:133 +0xca
github.com/itchio/butler/configurator.sniff(0xdbe5c0, 0xc0421bd680, 0x3, 0xc04216fd70, 0x0, 0x0, 0x0)
        C:/msys64/home/amos/Dev/go/src/github.com/itchio/butler/configurator/configure.go:335 +0xa29
github.com/itchio/butler/configurator.Configure(0xc0420441a0, 0x1, 0x0, 0x0, 0x0, 0x0)
        C:/msys64/home/amos/Dev/go/src/github.com/itchio/butler/configurator/configure.go:468 +0x6bc
main.configure(0xc0420441a0, 0x1, 0xa11f00, 0xa10653, 0x7, 0xa0d762, 0x5, 0x0)
        C:/msys64/home/amos/Dev/go/src/github.com/itchio/butler/configure.go:15 +0xb7
main.doMain(0xc042047f60, 0x2, 0x2)
        C:/msys64/home/amos/Dev/go/src/github.com/itchio/butler/main.go:694 +0xe90
main.main()
        C:/msys64/home/amos/Dev/go/src/github.com/itchio/butler/main.go:500 +0x6b

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.