moralismercatus / crete

Open source concolic testing tool for binaries
1 stars 1 forks source link

Provide a way to constrain or otherwise concolic file input #120

Open moralismercatus opened 9 years ago

moralismercatus commented 9 years ago

A use case is when a media file contains headers. It would be nice to have a way to designate these as either concrete or not, or to constrain them to some value (such as the initial input i.e., make them concrete).

I don't know the best way to go about this. One possibility is, in the configuration file, have something akin to:

<constraints>
    <constraint file="input.data" bytes="[0,127]"/>
<constraints>

What this example illustrates is designating the first 128 bytes of the file "input.data" as concrete. That is, constrain them to the initial values provided in the file.