]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: Don't use a static buffer in xenParseXLVnuma()
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 14 Jan 2022 08:36:21 +0000 (09:36 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 17 Jan 2022 08:53:45 +0000 (09:53 +0100)
commit5a1bdcfbf0c4476d9ce219314bd5e9f8c5c1a847
tree162148de61143fbf113e33fda31f6635a32454de
parent17c324bd258261a17a67b6e534ea9407f491ce48
libxl: Don't use a static buffer in xenParseXLVnuma()

The xenParseXLVnuma() function is responsible for parsing 'vnuma'
part of XL config and setting corresponding values in
virDomainDef. While doing so it uses a static buffer which is set
to data we are interested in and then parsing the buffer further
(e.g. string to integer conversion, bitmap parsing, and so on).
Well, the data we are interested in are already in a string
(@data) which can be used directly rendering this intermediary
buffer needless.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/libxl/xen_xl.c