mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[ion/simulator] Ignore invalid events in nws files
This commit is contained in:
@@ -40,7 +40,10 @@ static inline bool load(FILE * f) {
|
||||
int c = 0;
|
||||
while ((c = getc(f)) != EOF) {
|
||||
Ion::Events::Event e = Ion::Events::Event(c);
|
||||
journal->pushEvent(e);
|
||||
if (e.isDefined() && e.isKeyboardEvent()) {
|
||||
// Avoid pushing invalid events - useful when fuzzing
|
||||
journal->pushEvent(e);
|
||||
}
|
||||
}
|
||||
Ion::Events::replayFrom(journal);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user