libblkid-tiny: fix symbol collision with full libblkid
authorJo-Philipp Wich <jo@mein.io>
Sun, 22 Dec 2019 18:46:05 +0000 (19:46 +0100)
committerJo-Philipp Wich <jo@mein.io>
Sun, 22 Dec 2019 18:54:42 +0000 (19:54 +0100)
commitb4e25d54035c5092e8e9b46ab63500e95ac8c730
tree9290e83dfc6f5399497f89a5a42129da60b51d3d
parent111a43f8c64683e79859dcb3f4b7aa437e24502b
libblkid-tiny: fix symbol collision with full libblkid

The recent introduction of blkid_new_probe() and blkid_free_probe() in the
dynamically linked libblkid-tiny caused the dlopen'd libblkid.so to call into
the wrong version of blkid_new_probe() within blkid_new_probe_from_filename(),
leading to memory corruption and eventual segmentation faults.

Fixes: b82c5c1 ("libblkid-tiny: add functions for allocating & freeing probe struct")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
libblkid-tiny/blkid.h
libblkid-tiny/libblkid-tiny.h
libblkid-tiny/probe.c
probe.c