On 22/03/13 13:57, Toby Gray wrote: > > I also can't reproduce it with debug builds of libusbx, only release > binaries.
I've just realised that the reason for this must be that debug builds aren't optimising out the variables around the buffer which is overrun. As these variables aren't used after the point at which they are accidentally written to in debug builds, no crash is seen in debug builds. The compiler is clearly optimising away several of the other stack variables in release builds, so the buffer overrun then clobbers the stack canary. Regards, Toby ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel