diff options
Diffstat (limited to '030container.cc')
-rw-r--r-- | 030container.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/030container.cc b/030container.cc index 15a6eb6f..41bba748 100644 --- a/030container.cc +++ b/030container.cc @@ -125,6 +125,11 @@ case GET: { products.resize(1); break; } + if (base_address == 0) { + raise << current_recipe_name() << ": tried to access location 0 in '" << current_instruction().to_string() << "'\n" << end(); + products.resize(1); + break; + } assert(scalar(ingredients.at(1))); long long int offset = ingredients.at(1).at(0); long long int src = base_address; |