]> git.wh0rd.org - fontconfig.git/commit
Avoid writing uninitialized structure pad bytes to cache files.
authorKeith Packard <keithp@neko.keithp.com>
Sat, 2 Dec 2006 21:04:05 +0000 (13:04 -0800)
committerKeith Packard <keithp@neko.keithp.com>
Sat, 2 Dec 2006 21:04:05 +0000 (13:04 -0800)
commit2b77216ee21de95ec352672aa025195a83925b32
tree2670359e4027e9a13b5c5deed6eb80b253536fe9
parent64d7e303df441f274ee194a401dcd14dfb58af7e
Avoid writing uninitialized structure pad bytes to cache files.

The union inside the FcValue structure contains pad bytes. Instead of
copying the whole structure to the cache block, copy only the initialized
fields to avoid writing whichever bytes serve as padding within the
structure.
src/fcpat.c