Bug 1064864. Ensure the copying bounds are sane. r=jrmuizel

This prevents things from going really bad on some drivers.

--HG--
extra : rebase_source : c237cf3e6a6174696ebe6d41562a30c8cc0e564d