Displaying 5 results from an estimated 5 matches for "mtiz".
Did you mean:
mti
2006 Mar 06
2
DO NOT REPLY [Bug 3584] New: base64 function does not pad output correctly
...ReportedBy: mathijs@crooked.net
QAContact: rsync-qa@samba.org
The base64 function in authenticate.c does not correcly pad the output data.
This can easily be seen by having it encode N bytes of data, where N is -not- a
multiple of 3. For instance:
base64("123") == "MTIz" (correct value: "MTIz")
base64("1234") == "MTIzNA" (correct value: "MTIzNA==")
Because of this bug, HTTP Basic authentication may not work correctly,
depending on the length of the username and password.
The patch below fixes this problem.
----8<...
2018 Sep 11
0
[PATCH nbdkit 4/4] tests: Add a helper function which waits for nbdkit to start up.
...7 @@
# Test the data plugin with base64= parameter.
+source functions.sh
set -e
set -x
@@ -52,21 +53,8 @@ if ! qemu-io --help >/dev/null; then
fi
# Run nbdkit.
-nbdkit -P data-base64.pid -U data-base64.sock \
+start_nbdkit -P data-base64.pid -U data-base64.sock \
data base64=MTIz size=512
-
-# We may have to wait a short time for the pid file to appear.
-for i in `seq 1 10`; do
- if test -f data-base64.pid; then
- break
- fi
- sleep 1
-done
-if ! test -f data-base64.pid; then
- echo "$0: PID file was not created"
- exit 1
-fi
-
pid="$(c...
2018 Sep 13
0
[PATCH v2 nbdkit 5/5] tests: Add a helper function which waits for nbdkit to start up.
...ted in this build.
if ! nbdkit data --dump-plugin | grep -sq "data_base64=yes"; then
@@ -53,31 +54,9 @@ if ! qemu-io --help >/dev/null; then
fi
# Run nbdkit.
-nbdkit -P data-base64.pid -U data-base64.sock \
+start_nbdkit -P data-base64.pid -U data-base64.sock \
data base64=MTIz size=512
-# We may have to wait a short time for the pid file to appear.
-for i in `seq 1 10`; do
- if test -f data-base64.pid; then
- break
- fi
- sleep 1
-done
-if ! test -f data-base64.pid; then
- echo "$0: PID file was not created"
- exit 1
-fi
-
-pid="$(c...
2018 Sep 11
7
[PATCH nbdkit 0/4] tests: Move common functions into tests/functions.sh
Combine much common code into tests/functions.sh.
Patch 1: Preparation for patch 3.
Patch 2: Fix a long-standing bug in how man pages links are generated.
Patch 3: Common code for iterating a test function over every plugin.
Patch 4: Common code for starting nbdkit in a test and waiting for the
PID file to appear. This is the largest and most complex of
the patches but is
2018 Sep 13
8
[PATCH v2 nbdkit 0/5] tests: Move common functions into tests/functions.sh
v1 was here:
https://www.redhat.com/archives/libguestfs/2018-September/msg00057.html
v2:
- Fix tab vs spaces in configure.ac.
- To generate list of plugins, use printf instead of xargs.
- Use 'source ./functions.sh' instead of 'source functions'.
- functions.sh: Consistent quoting in foreach_plugin function.
- functions.sh: Change the contract of start_nbdkit so it