libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit a27a11f20c7b82fd4480b8a1ca8605ff79fff494
parent 10fcdb1e81b47329ed38073f18a0a8e223b76e72
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri,  2 Mar 2018 22:09:52 +0100

asan fix for flags

Diffstat:
Msrc/microhttpd/test_upgrade.c | 10+++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/microhttpd/test_upgrade.c b/src/microhttpd/test_upgrade.c @@ -1100,7 +1100,15 @@ test_upgrade (int flags, sock)) abort (); if (0 == (flags & MHD_USE_INTERNAL_POLLING_THREAD) ) - run_mhd_loop (d, real_flags->flags); + { + enum MHD_FLAG flags; + + /* make address sanitizer happy */ + memcpy (&flags, + &real_flags->flags, + sizeof (flags)); + run_mhd_loop (d, flags); + } pthread_join (pt_client, NULL); pthread_join (pt,