gmem.c: array is only paritally filled by memcpy
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Mon, 20 Aug 2012 14:41:42 +0000 (16:41 +0200)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Mon, 20 Aug 2012 14:41:42 +0000 (16:41 +0200)
commit96a0c589eec8e66f0d879c2a0979df6fd2c23dde
tree31947e290d1a45704d2a8213bfd03380a29357f7
parent248cc2c8858a2c60b9aaaa7706ef3a7f5bce84cc
gmem.c: array is only paritally filled by memcpy

The size of the local_data arrray is too large. It should not be
multiplied by the sizeof guint.

The memcpy of profile_data to local_data later will only fill a part of the
array.

Spotted with the PVS-Studio static analyzer

https://bugzilla.gnome.org/show_bug.cgi?id=681501
glib/gmem.c