diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2012-11-23 12:59:39 +0100 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2012-12-12 18:15:47 +0100 |
commit | 0b1d268011dc0b1518b61cb21073f21cdc53628f (patch) | |
tree | bfa88245b94d09c87ad4df09a938f6900ac2523e /configure.ac | |
parent | 5c91735b2c81a47cf88c84256f4d36a888923549 (diff) | |
download | spice-0b1d268011dc0b1518b61cb21073f21cdc53628f.tar.gz spice-0b1d268011dc0b1518b61cb21073f21cdc53628f.tar.xz spice-0b1d268011dc0b1518b61cb21073f21cdc53628f.zip |
Make sure strncpy'ed string are 0-terminated
spice_server_set_ticket and spice_server_set_addr get (library)
user-provided strings as arguments, and copy them to fixed-size
buffers using strncpy. However, if these strings are too long,
the copied string will not be 0-terminated, which will cause issues
later. This commit copies one byte less than the size of the
destination buffer. In both cases, this buffer is a static global
variable, so its memory will be set to 0.
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions