Re: [PATCH v2] trace-cmd: fix writing of uncompressed size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 11 Jul 2022 11:43:40 +0200
Sven Schnelle <svens@xxxxxxxxxxxxx> wrote:

> pointer in struct tracecmd_compression is 'unsigned long', which is 8 byte
> in size on most platforms, but the tep_read_number() call in the next line
> treats it as a 4 byte value. As there's no need for unsigned long change
> the type to unsigned int.
> 
> Fixes: 3f8447b1 ("trace-cmd library: Add support for compression algorithms")
> Signed-off-by: Sven Schnelle <svens@xxxxxxxxxxxxx>

Hi Sven,

Can you resend and Cc linux-trace-devel@xxxxxxxxxxxxxxx so that it gets
added to patchwork.

Thanks!

-- Steve


> ---
>  lib/trace-cmd/trace-compress.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/trace-cmd/trace-compress.c b/lib/trace-cmd/trace-compress.c
> index a63295e..461de8d 100644
> --- a/lib/trace-cmd/trace-compress.c
> +++ b/lib/trace-cmd/trace-compress.c
> @@ -32,7 +32,7 @@ struct tracecmd_compression {
>  	int				fd;
>  	unsigned int			capacity;
>  	unsigned int			capacity_read;
> -	unsigned long			pointer;
> +	unsigned int			pointer;
>  	char				*buffer;
>  	struct compress_proto		*proto;
>  	struct tep_handle		*tep;




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux