]> git.proxmox.com Git - mirror_qemu.git/commit
util/id: fully allocate names table
authorJohn Snow <jsnow@redhat.com>
Wed, 25 Nov 2015 21:03:37 +0000 (16:03 -0500)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 4 Dec 2015 06:39:55 +0000 (09:39 +0300)
commit624533e5a53e5df347e46f06408d15b9df5254f0
treea5f33fcc5fb9791e2f7edb49ba3627289f9e5ecc
parent4c65fed8bdf96780735dbdb92a8bd0d6b6526cc3
util/id: fully allocate names table

Trivial: this array should be allocated to have ID_MAX entries always.
Otherwise if someone were to forget to expand this table, the assertion
in the id generator won't actually trigger; it will read junk data.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
util/id.c