morganstanley / hobbes

A language and an embedded JIT compiler
http://hobbes.readthedocs.io/
Apache License 2.0
1.16k stars 105 forks source link

Provide default report name #357

Closed adam-antonik closed 4 years ago

adam-antonik commented 4 years ago

Running hobbes-test without any arguments will probably produce a filename with gibberish, could segfault, or with vanishingly small possibility overwrite something it shouldn't, as Args.report is an uninitialized pointer if --json is not provided. This introduces a default value to stop that.