[PATCH libpciaccess] Fix pci_io_handle allocation routines.

Tormod Volden lists.tormod at gmail.com
Tue Apr 3 14:12:46 PDT 2012


On Mon, Apr 2, 2012 at 8:26 AM, Matthieu Herrb wrote:
> The previous version of new_io_handle()  would invalidate all previous
> allocations when realloc moves the base pointer of the ios array.
> Since I cannot figure out where this array is useful, just get rid of
> it, providing sound stable memory allocation.
>
> Fixes vgaHWSaveFonts() in 1.12 xserver on OpenBSD, but other
> sub-systems relaying on pci_io could be affected too.

Tested-by: Tormod Volden <debian.tormod at gmail.com>

Great! This also fixes the VBE trouble I reported in
http://lists.x.org/archives/xorg-devel/2012-February/029240.html and
cleaned up a lot of valgrind warnings (which I obviously should have
taken a closer look at).

Cheers,
Tormod


More information about the xorg-devel mailing list