com.github.nradov.abnffuzzer.Ctl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of abnffuzzer Show documentation
Show all versions of abnffuzzer Show documentation
Fuzz tester for Augmented Backus-Naur Form (ABNF) rules as defined in
IETF RFC 5234. This library can directly parse a variety of input
sources and extract the ABNF rules, then generate random output matching
those rules. That output can be fed in a test framework such as JUnit to
search for defects in an application which implements the rules. The
most common use case would be testing implementations of other IETF RFCs.
The newest version!
package com.github.nradov.abnffuzzer;
/**
* %x00-1F / %x7F. Controls.
*
* @author Nick Radov
*/
final class Ctl extends SingleByte {
private static final byte[][] BYTES = new byte['\u001F' + 1][1];
static {
for (byte i = '\u0000'; i <= '\u001F'; i++) {
BYTES[i] = new byte[] {(byte) (i)};
}
BYTES[BYTES.length - 1] = new byte[] { '\u007F' };
}
Ctl() {
super(BYTES);
}
}