diff options
author | Emilio G. Cota <cota@braap.org> | 2016-07-25 11:03:44 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-08-03 18:42:35 +0200 |
commit | 071d4054770205ddb8a58a9e2735069d8fe52af1 (patch) | |
tree | 3004d8291f4f13c857327005942d7908123652e4 /tests/rtl8139-test.c | |
parent | f9dbc19e8bf58d0cbc830083352475bb16f315c4 (diff) | |
download | qemu-071d4054770205ddb8a58a9e2735069d8fe52af1.zip qemu-071d4054770205ddb8a58a9e2735069d8fe52af1.tar.gz qemu-071d4054770205ddb8a58a9e2735069d8fe52af1.tar.bz2 |
qdist: use g_renew and g_new instead of g_realloc and g_malloc.
This is safer against overflow. g_renew is available in all
version of glib, while g_realloc_n is only available in 2.24.
Signed-off-by: Emilio G. Cota <cota@braap.org>
Message-Id: <1469459025-23606-3-git-send-email-cota@braap.org>
[Rewritten to use g_new/g_renew. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests/rtl8139-test.c')
0 files changed, 0 insertions, 0 deletions