GitHub PushEvent at 2014-06-20 16:25:54
Repository: netty
Actor: normanmaurer
Payload: {"shas":[["371f8066d2502f6c6d75c5d0f80cd25e19b5e58b","c6d25a6b3d6f79281fd6ef0a425a9dcf91b94750@redhat.com","[#2580] [#2587] Fix buffer corruption regression when ByteBuf.order(LITTLE_ENDIAN) is used\n\nMotivation:\n\nTo improve the speed of ByteBuf with order LITTLE_ENDIAN and where the native order is also LITTLE_ENDIAN (intel) we introduces a new special SwappedByteBuf before in commit 4ad3984c8b725ef59856d174d09d1209d65933fc. Unfortunally the commit has a flaw which does not handle correctly the case when a ByteBuf expands. This was caused because the memoryAddress was cached and never changed again even if the underlying buffer expanded. This can lead to corrupt data or even to SEGFAULT the JVM if you are lucky enough.\n\nModification:\n\nAlways lookup the actual memoryAddress of the wrapped ByteBuf.\n\nResult:\n\nNo more data-corruption for ByteBuf with order LITTLE_ENDIAN and no JVM crashes.","Norman Maurer",true]],"size":1,"ref":"refs/heads/4.1","head":"371f8066d2502f6c6d75c5d0f80cd25e19b5e58b"}