Fix: poll max size should be checked during resize
authorDavid Goulet <dgoulet@efficios.com>
Tue, 22 Jan 2013 20:28:36 +0000 (15:28 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 22 Jan 2013 20:28:38 +0000 (15:28 -0500)
commitac018a8b4890dcf6f0eb9d4b5dee600269e79b29
treea5933c1ea222113578b1f7b64120e0dc6ef5d76e
parentab30f567fb55cc0336b2e7018295bb23ba90abb5
Fix: poll max size should be checked during resize

This was detected using cppcheck:

[src/common/compat/compat-poll.c:204]: (error) Uninitialized variable:
new_size

So, the check was always made over an uninitialized variable on the
stack. Fortunately, worst case scenario, new_size is set to the maximum
allowed or kept untouched.

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/common/compat/compat-poll.c
This page took 0.02611 seconds and 4 git commands to generate.