Skip to content

Use string bound functions (take #2)

Christoph Egger xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Use string bound functions (take #2)xen/common/gdbstub.c xen/common/kernel.c xen/common/kexec.c +7 more+30 -372 replies
2/3Use string bound functions (take #2)xen/arch/x86/cpu/centaur.c xen/arch/x86/cpu/common.c xen/arch/x86/cpu/cyrix.c +7 more+76 -570 replies
3/3Use string bound functions (take #2)xen/arch/ia64/linux-xen/setup.c xen/arch/ia64/xen/dom_fw.c xen/arch/ia64/xen/domain.c +5 more+35 -330 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Use string bound functions (take #2)

Hi!

I killed safe_strcpy() and almost all users from strcpy() and strncpy(). The remaining users are acm and acpi.
When this is done, strcpy() and strncpy() can be removed.

patch 1/3:
Changes arch-independent code.
Warning: Since tools re-uses libelf, this breaks the tool-building of the Linux distris, whose glibc have NO strlcpy/strlcat.
Solaris and *BSD are fine. They have these functions.
Keir, it's up to you if you apply this or if you wait until a fix for the tools is available.

patch 2/3:
Changes for x86 platform.

patch 3/3:
Changes for ppc/ia64 platforms.
Warning: Due to lack of hw, these two patches are NOT even compile-tested. IA64 and PPC maintainers, please verify.