I chose not to use memmove but rather read and write all buffer bytes in a loop 
(not sure if memmove would optimize src==dst case). I could successfully 
trigger the EFAULT and it did not cause any segfault.

patch (just for reference):
https://gist.github.com/miguelfreitas/8298825

besides i must add that my application recycles the same buffers all over again 
for the entire lifetime. so it would be really unexpected if a buffer that was 
valid in last call is now considered invalid (unless of course if it had been 
freed).

---
Reply to this email directly or view it on GitHub:
https://github.com/libusbx/libusbx/issues/76#issuecomment-31734711
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to