More implementation of fuzzing window - now it is possible to use the

bitfield to select which bits to fuzz - random bit fuzzing works but
seqential and sweep do not yet.
This commit is contained in:
Collin Kidder
2016-01-27 22:07:17 -05:00
parent 411b43146d
commit 54045badeb
3 changed files with 193 additions and 11 deletions
+15 -1
View File
@@ -10,6 +10,16 @@ namespace Ui {
class FuzzingWindow;
}
namespace BitSequenceType
{
enum
{
Sequential,
Sweeping,
Random
};
}
class FuzzingWindow : public QDialog
{
Q_OBJECT
@@ -29,6 +39,8 @@ private slots:
void setAllFilters();
void toggleFuzzing();
void idListChanged(QListWidgetItem *item);
void bitfieldClicked(int, int);
void changedNumDataBytes(int newVal);
private:
Ui::FuzzingWindow *ui;
@@ -38,7 +50,8 @@ private:
QList<int> selectedIDs;
QList<CANFrame> sendingBuffer;
int startID, endID, currentID;
bool seqIDScan, rangeIDSelect, seqBitSelect;
bool seqIDScan, rangeIDSelect;
int bitSequenceType;
bool currentlyFuzzing;
uint8_t currentBytes[8];
uint8_t bitGrid[64];
@@ -47,6 +60,7 @@ private:
void refreshIDList();
void calcNextID();
void calcNextBitPattern();
void redrawGrid();
};
#endif // FUZZINGWINDOW_H