]> Git Repo - qemu.git/commit - tests/Makefile.include
util: add base64 decoding function
authorDaniel P. Berrange <[email protected]>
Mon, 23 Nov 2015 15:24:50 +0000 (15:24 +0000)
committerDaniel P. Berrange <[email protected]>
Fri, 18 Dec 2015 16:25:08 +0000 (16:25 +0000)
commit89bc0b6cae6e40e9247bf911162b0aee0c818c4c
treebe3ea0fed48a497e04e74b999d63e979faed3eea
parent18f49881cf8359e89396aac12f5d3cf3f8a632ba
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 <[email protected]>
Signed-off-by: Daniel P. Berrange <[email protected]>
include/qemu/base64.h [new file with mode: 0644]
tests/.gitignore
tests/Makefile
tests/test-base64.c [new file with mode: 0644]
util/Makefile.objs
util/base64.c [new file with mode: 0644]
This page took 0.026638 seconds and 4 git commands to generate.