Fix crash at startup in SSE4.2 code when running a 32 bits Windows build
authorPascal Quantin <pascal.quantin@gmail.com>
Thu, 12 Feb 2015 08:07:02 +0000 (09:07 +0100)
committerPascal Quantin <pascal.quantin@gmail.com>
Thu, 12 Feb 2015 16:37:55 +0000 (16:37 +0000)
commitbdcac172eaa2ec4998c9f2775e691460b9b7a2d0
treefce8f3fc4cee653f0edfe8ed93f1133474e66ea8
parent678a9b6463b3661660da2e8a99781332c23cf78c
Fix crash at startup in SSE4.2 code when running a 32 bits Windows build

There is no guarantee that a g_malloc'ed memory block will be aligned on a 128 bits boundary
Instead use a static variable definition (at the cost of exposing the HAVE_SSE4_2 compilation flag in ws_mempbrk.h)

Change-Id: I661bf479a9d458d64c96bafc940c519d29a4780b
Reviewed-on: https://code.wireshark.org/review/7070
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
epan/dissectors/packet-cups.c
epan/dissectors/packet-irc.c
epan/dissectors/packet-megaco.c
epan/dissectors/packet-sdp.c
epan/dissectors/packet-sip.c
epan/tvbuff.c
wsutil/ws_mempbrk.h
wsutil/ws_mempbrk_sse42.c