All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.nradov.abnffuzzer.Ctl Maven / Gradle / Ivy

Go to download

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);
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy