[Spice-devel] [spice-gtk 3/4] coverity: avoid out of bounds access
Christophe Fergeau
cfergeau at redhat.com
Mon Apr 4 09:13:01 UTC 2016
On Mon, Apr 04, 2016 at 10:02:08AM +0200, Fabiano FidĂȘncio wrote:
> ---
> src/controller/test.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/controller/test.c b/src/controller/test.c
> index 649aca5..2909b06 100644
> --- a/src/controller/test.c
> +++ b/src/controller/test.c
> @@ -262,7 +262,7 @@ int main (int argc, char *argv[])
> send_data (CONTROLLER_PASSWORD, (uint8_t*)PWD, strlen(PWD) + 1);
> send_data (CONTROLLER_SECURE_CHANNELS, (uint8_t*)SECURE_CHANNELS, strlen(SECURE_CHANNELS) + 1);
> send_data (CONTROLLER_DISABLE_CHANNELS, (uint8_t*)DISABLED_CHANNELS, strlen(DISABLED_CHANNELS) + 1);
> - send_data (CONTROLLER_TLS_CIPHERS, (uint8_t*)TLS_CIPHERS, sizeof(TLS_CIPHERS) + 1);
> + send_data (CONTROLLER_TLS_CIPHERS, (uint8_t*)TLS_CIPHERS, strlen(TLS_CIPHERS) + 1);
sizeof("TLS_CIPHER") is not doing the right thing?
This is consistent with the other constants anyways, so fine with me.
Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20160404/235eebab/attachment.sig>
More information about the Spice-devel
mailing list