Michael Tokarev d09b8fa161 libcacard: fix wrong array expansion logic
The currrent code in libcacard/vcard_emul_nss.c:vcard_emul_options()
has a weird bug in variable usage around expanding opts->vreader
array.

There's a helper variable, vreaderOpt, which is first needlessly
initialized to NULL, next, conditionally, only we have to expand
opts->vreader, receives array expansion from g_renew(), and next,
even if we don't actually perform expansion, the value of this
variable is assigned to the actual array, opts->vreader, which
was supposed to be expanded.

So, since we expand the array by READER_STEP increments, only
once in READER_STEP (=4) the code will work, in other 3/4 times
it will fail badly.

Fix this by not using this temp variable when expanding the
array, and by dropping the useless =NULL initializer too -
if it wasn't in place initially, compiler would have warned
us about this problem at the beginning.

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
2014-05-26 10:40:04 +04:00
2014-05-16 10:35:59 -04:00
2013-04-18 13:50:53 +02:00
2014-05-20 13:05:58 +02:00
2014-05-15 14:24:05 +02:00
2014-05-09 09:11:31 -04:00
2014-05-19 11:36:48 +02:00
2014-05-15 14:24:05 +02:00
2014-05-16 10:35:59 -04:00
2014-04-25 09:19:58 -04:00
2014-05-16 08:30:12 +02:00
2012-09-07 09:02:44 +03:00
2014-03-12 17:26:32 +01:00
2013-09-05 09:40:31 -05:00
2013-10-11 09:34:56 -07:00
2013-07-23 02:41:31 +02:00
2013-08-12 09:15:12 -05:00
2013-09-03 12:25:55 +02:00
2014-05-24 00:07:29 +04:00
2014-03-13 14:34:16 +00:00
2014-02-25 14:30:28 +01:00
2014-04-18 10:33:36 +04:00
2014-04-22 12:00:20 +02:00
2014-05-24 00:07:29 +04:00
2014-05-24 00:07:29 +04:00
2013-10-11 09:34:56 -07:00
2014-05-09 22:59:40 +02:00
2014-02-17 11:57:23 -05:00
2014-04-17 20:39:32 +01:00
2013-10-11 09:34:56 -07:00
2014-05-07 16:16:43 +00:00
2013-04-08 18:13:10 +02:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
Description
Languages
C 82.6%
C++ 6.5%
Python 3.3%
Dylan 2.9%
Shell 1.6%
Other 2.9%