aboutsummaryrefslogtreecommitdiffstats
path: root/src/connection.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-07-23 20:14:33 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-07-23 20:14:33 -0400
commita2c79b14a1aa58424eae77db39ded4d745acce1d (patch)
tree1801375822132f7f0c7bc36ee2d6855888a7193a /src/connection.c
parenttest-runner: Wrap realloc() too (diff)
downloadwayland-a2c79b14a1aa58424eae77db39ded4d745acce1d.tar
wayland-a2c79b14a1aa58424eae77db39ded4d745acce1d.tar.gz
wayland-a2c79b14a1aa58424eae77db39ded4d745acce1d.tar.bz2
wayland-a2c79b14a1aa58424eae77db39ded4d745acce1d.tar.lz
wayland-a2c79b14a1aa58424eae77db39ded4d745acce1d.tar.xz
wayland-a2c79b14a1aa58424eae77db39ded4d745acce1d.tar.zst
wayland-a2c79b14a1aa58424eae77db39ded4d745acce1d.zip
tests: Wrap calloc by just returning NULL if we're called too early
Since glibc dlsym() calls calloc, we get a call to our calloc wrapper as we try to look up the real calloc implementation. dlsym() will fall back to a static buffer in case calloc returns NULL, so that's what we'll do. This is all highly glibc dependent, of course, but the entire malloc weak symbol wrapper mechanism is, so there's no loss of generality here.
Diffstat (limited to 'src/connection.c')
0 files changed, 0 insertions, 0 deletions