Crashes during parse/load of .tzx

Issue #5 new
Konstantin Mochalov created an issue

Fuzzed Unreal Speccy Portable with AFL, found samples of .tzx files that crash it.

Samples 6, 165, 166, 167 known to crash regular Mac OS build of Unreal Speccy Portable 0.0.56.1 (when opened using File -> Open or by double-clicking in Finder), while many others cause crash only when Unreal Speccy Portable is built with Address Sanitizer.

Comments (5)

  1. Konstantin Mochalov reporter

    Fuzzed using modified 'benchmark' program, here is diff showing what was changed

    • removed running emulation cycles, left only loading of input file
    • removed time calculation
    • removed Handler()->OnDone()
    • removed assert(!speccy) in eSpeccyHandler destructor because of removed Handler()->OnDone() -- after test file is loaded, we can just end execution and don't bother more
    • removed Reset() in Speccy constructor, it slowed down tests significantly -- I don't need emulation in tests, only loading of .tzx
  2. Log in to comment