From: David M. <da...@sn...> - 2003-02-27 07:33:04
|
Hi all, I found a bug today in the fast SH4 memcpy that Stuart Menefy graciously wrote for us :-). Under some situations it was running off the front of the destination buffer and trashing things. The case I found was running off the front of the destination by 8 bytes: memcpy(0x881f7cdc, aligned-src, 64) Attached is a patch, and the changed original just in case. I would appreciate any feedback on the correctness/speed implications. I ran it through an extensive alignment/boundary case test without any problems and it fixed my original crash :-) Cheers, Davidm -- David McCullough: Ph: +61 7 3435 2815 http://www.SnapGear.com da...@sn... Fx: +61 7 3891 3630 Custom Embedded Solutions + Security |