[Bug 1106843] New: msgfmt crashes when writing java source code and the .po file has a POT-Creation-Date header
http://bugzilla.opensuse.org/show_bug.cgi?id=1106843 Bug ID: 1106843 Summary: msgfmt crashes when writing java source code and the .po file has a POT-Creation-Date header Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.0 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Development Assignee: bnc-team-screening@forge.provo.novell.com Reporter: gbl@guntram.de QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- $ msgfmt --version msgfmt (GNU gettext-tools) 0.19.8.1 $ msgfmt --java2 --source -d . -r Messages -l de messages.po Aborted (core dumped) The .po file in question is ------------------------------------------- msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-08-30 16:51+0200\n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" #: some/source.java:10 msgid "dog" msgstr "Hund" ------------------------------------------- Removing the POT-Creation-Date header from the .po file works around the problem.
From a first evaluation, it seems like some part of the code removes the POT-Creation-Date header from the header list while reading the .po file, without updating the msgstr_len field in the corresponding message struct. This leads to an abort() in the write_java_msgstr function in write-java.c.
-- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1106843 http://bugzilla.opensuse.org/show_bug.cgi?id=1106843#c1 Andreas Stieger <astieger@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium CC| |astieger@suse.com, | |crrodriguez@opensuse.org, | |dmueller@suse.com, | |pth@suse.com Assignee|bnc-team-screening@forge.pr |pth@suse.com |ovo.novell.com | --- Comment #1 from Andreas Stieger <astieger@suse.com> --- Assigning to SLE maintainer -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com