While using the address sanitizer with llvm-mc-assemble-fuzzer many heap-buffer overflows happen due to reading off the end of the buffer. This patch is an attempt to fix these instances.
There are no test cases added as the plan at the moment is to add the fuzzer to oss-fuzz once the number of bugs decreases. As well as the difficulty of writing test cases only caught by the address sanitizer.