[util-linux] Invalid %s in zh_CN sfdisk translation causes segfault

8 views
Skip to first unread message

夏yt

unread,
Jul 9, 2026, 4:21:42 PM (2 days ago) Jul 9
to i18...@googlegroups.com
Hi i18n-zh team,

I'm reporting a bug in the zh_CN translation of util-linux.

In po/zh_CN.po, the translation for disk-utils/sfdisk.c:1943 contains an extra
%s format specifier:

msgid ""
"\n"
"Type 'help' to get more information.\n"

msgstr ""
"\n"
"请执行“%s --help”了解更多信息。\n"

The original msgid does NOT contain any %s, but the translation does.

This causes sfdisk to segfault when run in zh_CN.UTF-8 locale, because the
code calls fdisk_info() with no extra arguments, but printf tries to read a %s
from the stack, hitting address 0x1.

GitHub Issue for reference:

Proposed fix:
-  "请执行“%s --help”了解更多信息。\n"
+  "请键入 'help' 来获得更多信息。\n"

Could someone please submit this fix to the Translation Project?

Thanks,
4444ji
user863-dev

Boyuan Yang

unread,
Jul 9, 2026, 8:34:14 PM (2 days ago) Jul 9
to i18...@googlegroups.com, xiayt...@gmail.com
Hi,
I just uploaded the version with fix onto translationproject.org.
Please notify util-linux maintainers to merge the chanages.

On the other hand, for a more rapid fix on your Linux system, please
contact the related Linux distribution package maintainers
to cherry-pick the fix.

Thanks,
Boyuan Yang
Reply all
Reply to author
Forward
0 new messages