All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [lttng-tool] Fix: wrong casting of return value
       [not found] <1402328436-13404-1-git-send-email-jonathan.r.julien@gmail.com>
@ 2014-06-12 18:02 ` David Goulet
  0 siblings, 0 replies; 2+ messages in thread
From: David Goulet @ 2014-06-12 18:02 UTC (permalink / raw)
  To: Jonathan Rajotte Julien; +Cc: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 1078 bytes --]

Merged!

On 09 Jun (11:40:36), Jonathan Rajotte Julien wrote:
> The function uri_parse_str_urls return a ssize_t and the return was
> casted to a size_t. This caused the following error checking to fail as
> -1 was interpreted as 18446744073709551615.
> 
> Fixes #803
> 
> Signed-off-by: Jonathan Rajotte Julien <jonathan.r.julien@gmail.com>
> ---
>  src/lib/lttng-ctl/save.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/src/lib/lttng-ctl/save.c b/src/lib/lttng-ctl/save.c
> index d136b2d..d414a9d 100644
> --- a/src/lib/lttng-ctl/save.c
> +++ b/src/lib/lttng-ctl/save.c
> @@ -99,7 +99,8 @@ int lttng_save_session_attr_set_output_url(
>  	struct lttng_save_session_attr *attr, const char *url)
>  {
>  	int ret = 0;
> -	size_t len, size;
> +	size_t len;
> +	ssize_t size;
>  	struct lttng_uri *uris = NULL;
>  
>  	if (!attr) {
> -- 
> 2.0.0
> 
> 
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 603 bytes --]

[-- Attachment #2: Type: text/plain, Size: 155 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [lttng-tool] Fix: wrong casting of return value
@ 2014-06-09 15:40 Jonathan Rajotte Julien
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Rajotte Julien @ 2014-06-09 15:40 UTC (permalink / raw)
  To: lttng-dev

The function uri_parse_str_urls return a ssize_t and the return was
casted to a size_t. This caused the following error checking to fail as
-1 was interpreted as 18446744073709551615.

Fixes #803

Signed-off-by: Jonathan Rajotte Julien <jonathan.r.julien@gmail.com>
---
 src/lib/lttng-ctl/save.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/lttng-ctl/save.c b/src/lib/lttng-ctl/save.c
index d136b2d..d414a9d 100644
--- a/src/lib/lttng-ctl/save.c
+++ b/src/lib/lttng-ctl/save.c
@@ -99,7 +99,8 @@ int lttng_save_session_attr_set_output_url(
 	struct lttng_save_session_attr *attr, const char *url)
 {
 	int ret = 0;
-	size_t len, size;
+	size_t len;
+	ssize_t size;
 	struct lttng_uri *uris = NULL;
 
 	if (!attr) {
-- 
2.0.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-06-12 18:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1402328436-13404-1-git-send-email-jonathan.r.julien@gmail.com>
2014-06-12 18:02 ` [lttng-tool] Fix: wrong casting of return value David Goulet
2014-06-09 15:40 Jonathan Rajotte Julien

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.