From 3ae583813c2bb61d7b04c8e601f88ce2cc8f7550 Mon Sep 17 00:00:00 2001 From: Michael Rash Date: Thu, 25 Oct 2012 22:04:09 -0400 Subject: [PATCH] added fuzzing encoding test that removes colon #5 --- test/fuzzing/patches/encoding_rm_colon5.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/fuzzing/patches/encoding_rm_colon5.patch diff --git a/test/fuzzing/patches/encoding_rm_colon5.patch b/test/fuzzing/patches/encoding_rm_colon5.patch new file mode 100644 index 00000000..5f822611 --- /dev/null +++ b/test/fuzzing/patches/encoding_rm_colon5.patch @@ -0,0 +1,13 @@ +diff --git a/lib/fko_encode.c b/lib/fko_encode.c +index c92d421..6363a52 100644 +--- a/lib/fko_encode.c ++++ b/lib/fko_encode.c +@@ -135,7 +135,7 @@ fko_encode_spa_data(fko_ctx_t ctx) + /* Add the message type value. + */ + offset = strlen(tbuf); +- sprintf(((char*)tbuf+offset), ":%i:", ctx->message_type); ++ sprintf(((char*)tbuf+offset), ":%i", ctx->message_type); + + /* Add the base64-encoded SPA message. + */