GVariant parser: fix tuple type checking
authorRyan Lortie <desrt@desrt.ca>
Tue, 15 Mar 2011 05:29:52 +0000 (01:29 -0400)
committerRyan Lortie <desrt@desrt.ca>
Tue, 15 Mar 2011 05:32:22 +0000 (01:32 -0400)
commitd679a7659ff8c4948e7bdff5fb80f52dee8f6a09
tree2738cf1a81f62d63e9946b74ed4fbaa39b6f176e
parenta7fc7909dad9b88e8b2d1c6cde801e8888bdfc36
GVariant parser: fix tuple type checking

Robert Ancell discovered that the GVariant parser messes up pretty badly
when the type of a tuple is specified and the tuple in the text being
parsed has a different number of elements (but otherwise matching child
types).

Check that we have the expected number of elements.

Closes #644786.
glib/gvariant-parser.c