[Top][All Lists]

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

[bug-gettext] Fwd: Bug#763820: gettext: msgunfmt aborts on incomplete UT

From: Santiago Vila
Subject: [bug-gettext] Fwd: Bug#763820: gettext: msgunfmt aborts on incomplete UTF-8 character
Date: Thu, 02 Oct 2014 23:52:19 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.0


I received this from the Debian bug system:

-------- Mensaje reenviado --------
Subject: Bug#763820: gettext: msgunfmt aborts on incomplete UTF-8 character
Date: Thu, 2 Oct 2014 23:31:33 +0200
From: Jakub Wilk <address@hidden>

Package: gettext
Version: 0.19.2-2
Severity: minor
Usertags: afl

msgunfmt aborts when trying to print some strings containing incomplete
UTF-8 characters:

$ msgfmt invalid-utf8.po -o invalid-utf8.mo
$ msgunfmt invalid-utf8.mo
msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8\n"

msgid "x"

#0  0xf7bb6ddc in raise () from /lib/i386-linux-gnu/libc.so.6
#1  0xf7bb8463 in abort () from /lib/i386-linux-gnu/libc.so.6
#2 0xf7f6529b in wrap (mp=0x0, address@hidden, stream=0x6, address@hidden, line_prefix=0x0, extra_indent=0, css_class=0xf7fbede2 <class_msgstr> "msgstr", name=0xf7fbd425 "msgstr", value=0x80532d4 "\333", do_wrap=undecided, page_width=79, charset=0xffffd608 "UTF-8") at write-po.c:805 #3 0xf7f6b3ba in message_print (debug=false, blank_line=<optimized out>, page_width=79, charset=0xffffd608 "UTF-8", stream=0x80531b0, mp=0x80533c8) at write-po.c:1356 #4 msgdomain_list_print_po (mdlp=0x80530f0, stream=0x80531b0, page_width=79, debug=false) at write-po.c:1579 #5 0xf7f60ca5 in msgdomain_list_print (mdlp=0x80530f0, filename=0xf7fbea0f "standard output", output_syntax=0x8052304 <output_format_po>, force=false, debug=false) at write-catalog.c:246
#6  0x08049ebc in main (argc=2, argv=0xffffd7e4) at msgunfmt.c:411

I would expect that the incomplete character is ignored (with the usual
"invalid multibyte sequence" warning); or at least that a reason for
aborting is given.

This bug was brought to you by american-fuzzy-lop:


Attachment: invalid-utf8.po
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]