Re: [PATCH spice 2/3] syntax-check: Skip strncpy check

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

 



> 
> strncpy used in reds_init_socket() has destination NUL terminated
> ---
> An alternative would be to use g_strlcpy
> ---
>  cfg.mk | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/cfg.mk b/cfg.mk
> index 3e5d345..66235ee 100644
> --- a/cfg.mk
> +++ b/cfg.mk
> @@ -42,6 +42,7 @@ local-checks-to-skip =			\
>    sc_prohibit_stat_st_blocks		\
>    sc_prohibit_magic_number_exit         \
>    sc_prohibit_strcmp                    \
> +  sc_prohibit_strncpy                   \
>    sc_prohibit_undesirable_word_seq      \
>    sc_root_tests				\
>    sc_space_tab				\

Acked

Frediano
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]