CyanogenDefy/android_hardware_ti_omap3-compat — comment on commit b1707fd947451369797c6688774bc66055d01eef
File:  line 0
By maniac103:

The other left crash is the one happening when switching to gallery, right.
About the buffer size: What I found out is that the crash was happening as the memset in OMX_VideoEnc_Utils.c:1618 wrote past the end of the allocated buffer, so obviously pBuffer and nAllocatedLen got out of sync. Did not yet find out where this happens, though.