Prevent integer overflow in copyString
Prevent integer overflow in copyString

The copyString function is only used for encoding string supplied by
the library user.

libexpat/libexpat,libexpat/libexpat,libexpat/libexpat,libexpat/libexpat,libexpat/libexpat,libexpat/libexpat