Menu

EDIT statement causes PC-BASIC to crash when a protected file is loaded and --strict-protect is on.

Anonymous
2017-01-12
2017-01-12
  • Anonymous

    Anonymous - 2017-01-12

    To reproduce the bug, simply create any sort of program, even a simple

    10 print "Hello world!"
    

    will do. Then, save it as a protected file:

    save "HELLO",P
    

    Finally, start PC-BASIC with --strict-protect, load the file, and try to use an EDIT statement:

    LOAD "HELLO"
    EDIT 10
    

    PC-BASIC will crash. The expected result is probably "Illegal function call", however.

     
  • Rob Hagemans

    Rob Hagemans - 2017-01-12

    Thanks for the report! I'll look into it.