aboutsummaryrefslogtreecommitdiff
path: root/util/Makefile.objs
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2015-11-23 15:24:50 +0000
committerDaniel P. Berrange <berrange@redhat.com>2015-12-18 16:25:08 +0000
commit89bc0b6cae6e40e9247bf911162b0aee0c818c4c (patch)
treebe3ea0fed48a497e04e74b999d63e979faed3eea /util/Makefile.objs
parent18f49881cf8359e89396aac12f5d3cf3f8a632ba (diff)
downloadqemu-89bc0b6cae6e40e9247bf911162b0aee0c818c4c.zip
qemu-89bc0b6cae6e40e9247bf911162b0aee0c818c4c.tar.gz
qemu-89bc0b6cae6e40e9247bf911162b0aee0c818c4c.tar.bz2
util: add base64 decoding function
The standard glib provided g_base64_decode doesn't provide any kind of sensible error checking on its input. Add a QEMU custom wrapper qbase64_decode which can be used with untrustworthy input that can contain invalid base64 characters, embedded NUL characters, or not be NUL terminated at all. Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'util/Makefile.objs')
-rw-r--r--util/Makefile.objs1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/Makefile.objs b/util/Makefile.objs
index 89dd80e..8620a80 100644
--- a/util/Makefile.objs
+++ b/util/Makefile.objs
@@ -30,3 +30,4 @@ util-obj-y += qemu-coroutine-sleep.o
util-obj-y += coroutine-$(CONFIG_COROUTINE_BACKEND).o
util-obj-y += buffer.o
util-obj-y += timed-average.o
+util-obj-y += base64.o