ref: ed874de117ff9d2eea35b69cd6a2fcb61f521c1a
parent: 73aec03ce3cfe7498d2dcf50bc740e4379a8611e
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sun Sep 10 02:38:36 EDT 2017
[as] Control overflow of packed bytes This function is going to be called for every immediate that is going to be printout, so it is the best place where control the error.
--- a/as/emit.c
+++ b/as/emit.c
@@ -80,6 +80,9 @@
idx += inc;
v >>= 8;
}
+
+ if (v)
+ error("overflow in immediate value");
return buf;
}