diff options
author | Hans de Goede <hdegoede@redhat.com> | 2012-08-31 21:20:13 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2012-08-31 21:20:13 +0200 |
commit | 75fb7bd480b8332a180380dc90b655bb1800f642 (patch) | |
tree | 50c41c3cdad51fe00091216b174ba1322a7e8c3c | |
parent | e9548dcded9e14e00bc3956b8df45c91a846f293 (diff) |
usbredirparser: Check for extraneous state-data after unserialize
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r-- | usbredirparser/usbredirparser.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usbredirparser/usbredirparser.c b/usbredirparser/usbredirparser.c index 2017116..d458aec 100644 --- a/usbredirparser/usbredirparser.c +++ b/usbredirparser/usbredirparser.c @@ -1517,5 +1517,10 @@ int usbredirparser_unserialize(struct usbredirparser *parser_pub, i--; } + if (remain) { + ERROR("error unserialize %d bytes of extraneous state data", remain); + return -1; + } + return 0; } |