skx / gobasic

A BASIC interpreter written in golang.
https://blog.steve.fi/tags/basic/
GNU General Public License v2.0
328 stars 27 forks source link

Crash in FOR loop #65

Closed skx closed 6 years ago

skx commented 6 years ago

An overnight run of the fuzzing-tool found the following program, which crashes:

  LET term=0
  FOR I=0TO term STEP

(There were 1000+ crashes found overnight; half of them were invalid DATA statements, the other half were hangs, due to INPUT or endless loops, be they GOTO/GOSUB/FOR. Yay!)