Bug#712588: libxaw: Please enable -Werror=format-security
Op 17-06-13 16:45, Simon Ruderich schreef:
> Package: libxaw
> Severity: normal
> Tags: patch
>
> Hello,
>
> The attached patch fixes compiling with -Werror=format-security.
> Please apply it. It should be sent to upstream if possible.
>
> diff -u libxaw-1.0.11/debian/rules libxaw-1.0.11/debian/rules
> --- libxaw-1.0.11/debian/rules
> +++ libxaw-1.0.11/debian/rules
> @@ -24,7 +24,7 @@
> else
> confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
> endif
> -confflags += $(shell DEB_CFLAGS_MAINT_APPEND=-Wall DEB_BUILD_MAINT_OPTIONS=hardening=-format dpkg-buildflags --export=configure)
> +confflags += $(shell DEB_CFLAGS_MAINT_APPEND=-Wall dpkg-buildflags --export=configure)
>
> configure: $(QUILT_STAMPFN)
> autoreconf -vfi
>
> Regards
> Simon
snprintf -> strncpy ?
~Maarten
Reply to: