Hammer: Parser Combinators for C
github.com
Hammer: Parser Combinators for C
1–10 of 21 posts
Re: Hammer: Parser Combinators for C
#2Their goal is to promote the use of context-free formats and protocols, to avoid falling into the trap of trying to parse recursively-enumerable languages, a problem that reduces to the halting problem. The idea is that by sticking to context-free grammars, protocols will be easier to parse, and the bulk of memory corruption errors can eliminated.
Meredith Patterson and Sergey Bratus gave an excellent talk on the subject at 28c3 [2], and they've put together a video series on using Hammer to build a secure parser for JSON RPC [3].
Re: Hammer: Parser Combinators for C
#3Hammer is a nifty parser combinator library from the people behind Language-Theoretic Security [1]. Their goal is to promote the use of context-free formats and protocols, to avoid falling into the trap of trying to parse recursively-enumerable languages, a problem that reduces to the halting problem. The idea is that by sticking to context-free grammars, protocols will be easier to parse, and the bulk of memory corr…
Re: Hammer: Parser Combinators for C
#4Hammer is a nifty parser combinator library from the people behind Language-Theoretic Security [1]. Their goal is to promote the use of context-free formats and protocols, to avoid falling into the trap of trying to parse recursively-enumerable languages, a problem that reduces to the halting problem. The idea is that by sticking to context-free grammars, protocols will be easier to parse, and the bulk of memory corr…
Their 28c3 talk is truly exceptional, and it's nearly enough to give one nightmares, or at the very least, it will give you the kind of haunting enduring doubts that most would rather not have. The part about HTML5+CSS3 being unintentionally turning complete still bothers me.
Re: Hammer: Parser Combinators for C
#5Earlier quoted context omitted.
Their 28c3 talk is truly exceptional, and it's nearly enough to give one nightmares, or at the very least, it will give you the kind of haunting enduring doubts that most would rather not have. The part about HTML5+CSS3 being unintentionally turning complete still bothers me.
Is there a video available of said talk?
Re: Hammer: Parser Combinators for C
#6Hammer is a nifty parser combinator library from the people behind Language-Theoretic Security [1]. Their goal is to promote the use of context-free formats and protocols, to avoid falling into the trap of trying to parse recursively-enumerable languages, a problem that reduces to the halting problem. The idea is that by sticking to context-free grammars, protocols will be easier to parse, and the bulk of memory corr…
Re: Hammer: Parser Combinators for C
#7Re: Hammer: Parser Combinators for C
#8Hammer is a nifty parser combinator library from the people behind Language-Theoretic Security [1]. Their goal is to promote the use of context-free formats and protocols, to avoid falling into the trap of trying to parse recursively-enumerable languages, a problem that reduces to the halting problem. The idea is that by sticking to context-free grammars, protocols will be easier to parse, and the bulk of memory corr…
What do you lose by sticking to context-free grammars?
Re: Hammer: Parser Combinators for C
#9Hammer is a nifty parser combinator library from the people behind Language-Theoretic Security [1]. Their goal is to promote the use of context-free formats and protocols, to avoid falling into the trap of trying to parse recursively-enumerable languages, a problem that reduces to the halting problem. The idea is that by sticking to context-free grammars, protocols will be easier to parse, and the bulk of memory corr…
What do you lose by sticking to context-free grammars?
Re: Hammer: Parser Combinators for C
#10[0] [PDF] https://people.csail.mit.edu/nickolai/papers/bangert-nail-la...