Fixed a potential buffer overflow bug. Added a new memory guard.
Fixed a potential buffer overflow bug. Added a new memory guard.

kbiElude/Emerald,kbiElude/Emerald,kbiElude/Emerald,grahamsellers/Emerald,grahamsellers/Emerald,grahamsellers/Emerald,kbiElude/Emerald,grahamsellers/Emerald,kbiElude/Emerald,grahamsellers/Emerald