Fixed a security flaw where someone could do a buffer overrun. This now checks to see if anyone would attempt to read past the end of the list.