-
Notifications
You must be signed in to change notification settings - Fork 15
Closed
Description
to reproduce:
msgfmt --check --statistics -o ru.mo po/ru.po
resulting in:
Program received signal SIGSEGV, Segmentation fault.
0x000000000040273c in process (in=0x605340, out=0x7ffff7ffb020)
at src/msgfmt.c:471
471 d.strlist[i].trans->off += d.off + d.len[pe_msgid] + d.len[pe_plural] + d.len[pe_ctxt];
(gdb) p i
$1 = 1
(gdb) p d.strlist[i]
$2 = {str = {len = 0, off = 53980}, trans = 0x0}
(gdb) p d.strlist[i-1]
$3 = {str = {len = 0, off = 53980}, trans = 0x619480}
the trans pointer of the second item is NULL. interestingly the 2nd item seems identical to the first apart from the trans pointer. i guess it's from the empty msgid ""
string right at the start of the file.
@xhebox do you have time to look into this ?
Metadata
Metadata
Assignees
Labels
No labels