Skip to content
Snippets Groups Projects
Commit 57a0aa6b authored by Greg Kurz's avatar Greg Kurz
Browse files

fsdev: don't allow unknown format in marshal/unmarshal


The code only uses well known format strings. An unknown format token is a
bug.

Signed-off-by: default avatarGreg Kurz <groug@kaod.org>
Reviewed-by: default avatarStefano Stabellini <sstabellini@kernel.org>
parent 506f3275
No related branches found
No related tags found
No related merge requests found
......@@ -168,7 +168,7 @@ ssize_t v9fs_iov_vunmarshal(struct iovec *out_sg, int out_num, size_t offset,
break;
}
default:
break;
g_assert_not_reached();
}
if (copied < 0) {
return copied;
......@@ -281,7 +281,7 @@ ssize_t v9fs_iov_vmarshal(struct iovec *in_sg, int in_num, size_t offset,
break;
}
default:
break;
g_assert_not_reached();
}
if (copied < 0) {
return copied;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment