Skip to content

Fix crashes of debug and interpret on incorrect command line usage

Camil Staps requested to merge fix-crashes-with-wrong-command-line-usage into master

What does this MR do?

Fix crashes when running e.g. ./interpret (without arguments) or ./debug -h (missing heap size).

Related issues

N/A

Changes to public APIs

None

Author's checklist (required)

See CONTRIBUTING.md for the rationale behind these items:

  • The commit history does not contain merges (use git rebase -i master if it does)
  • Intermediate commits compile (use git rebase -i master if not)
  • Newly added code has a style consistent with the existing code
  • Newly added code is documented
  • A changelog entry has been added if required. See CONTRIBUTING.md
  • If bugs have been solved, tests have been added -- no, there is no interface for this yet and it's not really worth it right now
  • Appropriate types have been used, especially in APIs
  • If efficiency is part of the acceptance criteria of the issue, a benchmark is provided
  • If enum instruction in src/abc_instructions.h has changed, ABC_VERSION in src/settings.h has been increased
Edited by Camil Staps

Merge request reports

Loading