Fix a variety of potential buffer overflows